Bug 1861173 - Correctly increment shopping CFR counter
commit021e8a155170d92ae8a9bd431707720c7a40d999
authorDreVla <vlad.dreghici@gmail.com>
Fri, 3 Nov 2023 10:51:13 +0000 (3 12:51 +0200)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Mon, 6 Nov 2023 11:55:24 +0000 (6 11:55 +0000)
tree2295a2ad22d867c8fa7c8ae50a29ce00aaa87462
parente4102749e741328242157038652ee7b88b7be2be
Bug 1861173 - Correctly increment shopping CFR counter

Using `.inc()` was wrong due to it returning the incremented
value and not incrementing the already existing one. This
patch aims to fix that, therefore showing the CFR correctly
for max 3 times.
mobile/android/fenix/app/src/main/java/org/mozilla/fenix/components/toolbar/BrowserToolbarController.kt
mobile/android/fenix/app/src/test/java/org/mozilla/fenix/components/toolbar/DefaultBrowserToolbarControllerTest.kt