After losing to Apple in a mammoth battle over copying from the iPhone, you might think Samsung would think twice about stealing from rivals again. But a Chinese court just ordered the South Korean company to pay 80 million yuan (approx. $11.6 million) to Huawei for patent infringement.

This is Huawei's first victory over Samsung in an intellectual property case, and it concerns several lawsuits filed against Samsung for copying smartphone technology owned by Huawei. The suits were first filed last May, and Samsung subsequently counter-sued, but lost its battle.

One of the suits against Samsung demanded compensation for the "unlicensed use of fourth-generation (4G) cellular communications technology, operating systems and user interface software in Samsung phones." Huawei said that more than 20 different models of Galaxy smartphones and tablets infringed its patents, including the Galaxy S7.

Huawei said it "welcomed the court's decision" after today's ruling. Samsung told Reuters it would decide on its response after reviewing the court's ruling.

It's not exactly a sum of money Samsung will lose sleep over, but it will sting after a somewhat miserable 2016 following the failure of the Galaxy Note 7. Nevertheless, with the Galaxy S8 series shaping up to be the best smartphone of 2017, it's likely to be a much better year for the company.