Apple Inc. and Samsung executives are holding talks to end the patent dispute between the companies.

The problem began in April when Apple accused Samsung of copying its design after Samsung released a series of Android-based devices including the Galaxy Tab.

The turn of events surprised many people, especially the tech analysts, as Apple is the second largest customer of Samsung in terms of generating more than $5 billion in sales. The two companies, however, declared war after Samsung’s Galaxy II usurped one of the top spots in the smartphone arena.

Judge Lucy Koh, who is presiding over the case, asked both the firms to settle the issue outside the court. Samsung has also been asked to show the company’s upcoming designs to Apple before they are released. Samsung wants the same from Apple now.

Previously, Apple had settled a patent dispute with Nokia for which Apple has to pay the company a royalty for every iOS device sold, the ITProPortal reported.