Apple has long been tangled up courtrooms after it was accused of fixing the prices of eBooks with other sellers in the marketplace. The company maintains its innocence, but faced a class action trial later this summer after a district judge found it guilty of price fixing last year. In an effort to avoid that trial, Apple has settled with consumers and the U.S. states that leveraged the suit against it, Bloomberg said Tuesday.

Right now it's unclear what kind of terms Apple was able to reach, though the company likely was able to settle for less than the expected $840 million it faced if the lawsuit went to trial. Apple was originally found guilty of conspiring to fix the prices of eBooks, in an effort to undercut competitors, back in July 2013. The Department of Justice has already barred Apple from striking new deals with book publishers for about two years.

Bloomberg said that Apple declined to comment on the settlement, though the company still plans to appeal the original ruling from July 2013. One of the main pieces of evidence against the company, however, are e-mails from Steve Jobs that specifically discussed setting the prices of eBooks in a specific manner as to avoid piracy but also to create a "mainstream eBooks market."