[components] For https://github.com/mozilla-mobile/android-components/issues/11678...
commit1c63cbc59a814b332873c1670d886d6dffab0be4
authormcarare <mihai.carare.dev@gmail.com>
Wed, 9 Feb 2022 14:37:13 +0000 (9 16:37 +0200)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 16 Feb 2022 08:10:31 +0000 (16 08:10 +0000)
treefe1076577ca80cb2d652de544868e7b486ff1570
parent4abd70f09d1e5c45ac7d5bbda8fa0341871f8194
[components] For https://github.com/mozilla-mobile/android-components/issues/11678: Avoid unnecessary getPrimaryClip() calls.

Having multiple calls results in parallel transactions passing through the binder,
resulting in a 'DeadObjectException: Transaction failed on small parcel; remote process probably died'
being thrown when legitimate getPrimaryClip() calls are made from widgets.
mobile/android/android-components/components/feature/awesomebar/src/main/java/mozilla/components/feature/awesomebar/provider/ClipboardSuggestionProvider.kt