What happened Shares of BlackBerry (NYSE: BB) spiked today after Bloomberg reported that the company has settled a yearslong dispute with Facebook over patents. This is the second day in a row that BlackBerry's stock has made significant gains. The tech stock was up by as much as 26.8% this morning and had settled to a 12.7% gain as of 12:12 p.m. EST. So what BlackBerry and Facebook have been fighting since at least 2018, when BlackBerry sued the social media company for allegedly using some of its technology in Facebook's messaging app. Facebook countersued and challenged some of the tech company's patents. Image source: Getty Images. Those suits appear resolved now, as BlackBerry confirmed to Bloomberg that the two companies have reached a settlement, though neither has disclosed any details. BlackBerry investors were clearly happy with the news today, especially since the company aims to move on from its smartphone business and focus on other technologies. Investors typically like to see lawsuits get resolved because ongoing litigation is costly and brings uncertainty to a company's stock. Now what With today's share price spike on the heels of yesterday's jump, the stock is up 125% over the past six months. While investors are rightly optimistic that the company has settled its dispute with Facebook, they should also stay focused on how BlackBerry will grow with its new technologies in the coming years. 10 stocks we like better than BlackBerryWhen investing geniuses David and Tom Gardner have a stock tip, it can pay to listen. After all, the newsletter they have run for over a decade, Motley Fool Stock Advisor, has tripled the market.* David and Tom just revealed what they believe are the ten best stocks for investors to buy right now... and BlackBerry wasn't one of them! That's right -- they think these 10 stocks are even better buys. See the 10 stocks *Stock Advisor returns as of November 20, 2020 Randi Zuckerberg, a former director of market development and spokeswoman for Facebook and sister to its CEO, Mark Zuckerberg, is a member of The Motley Fool's board of directors. Chris Neiger has no position in any of the stocks mentioned. The Motley Fool owns shares of and recommends Facebook. The Motley Fool recommends BlackBerry. The Motley Fool has a disclosure policy.Source