From 18a51be61c090a0ab60cef3f88c2b03194049379 Mon Sep 17 00:00:00 2001 From: Christian Sadilek Date: Fri, 6 Aug 2021 14:19:56 -0400 Subject: [PATCH] [fenix] Update Android Components version to 92.0.20210806164329 (https://github.com/mozilla-mobile/fenix/pull/20722) Addresses breaking change in ShortcutsSuggestionProvider --- .../fenix/search/awesomebar/ShortcutsSuggestionProvider.kt | 3 --- .../search/awesomebar/ShortcutsSuggestionProviderTest.kt | 7 ------- buildSrc/src/main/java/AndroidComponents.kt | 2 +- 3 files changed, 1 insertion(+), 11 deletions(-) diff --git a/app/src/main/java/org/mozilla/fenix/search/awesomebar/ShortcutsSuggestionProvider.kt b/app/src/main/java/org/mozilla/fenix/search/awesomebar/ShortcutsSuggestionProvider.kt index 039b2bf242..e611373cbe 100644 --- a/app/src/main/java/org/mozilla/fenix/search/awesomebar/ShortcutsSuggestionProvider.kt +++ b/app/src/main/java/org/mozilla/fenix/search/awesomebar/ShortcutsSuggestionProvider.kt @@ -25,9 +25,6 @@ class ShortcutsSuggestionProvider( ) : AwesomeBar.SuggestionProvider { override val id: String = UUID.randomUUID().toString() - override val shouldClearSuggestions: Boolean - get() = false - private val settingsIcon by lazy { AppCompatResources.getDrawable(context, R.drawable.ic_settings)?.toBitmap() } diff --git a/app/src/test/java/org/mozilla/fenix/search/awesomebar/ShortcutsSuggestionProviderTest.kt b/app/src/test/java/org/mozilla/fenix/search/awesomebar/ShortcutsSuggestionProviderTest.kt index 5d0f1e43a5..571fe0cb60 100644 --- a/app/src/test/java/org/mozilla/fenix/search/awesomebar/ShortcutsSuggestionProviderTest.kt +++ b/app/src/test/java/org/mozilla/fenix/search/awesomebar/ShortcutsSuggestionProviderTest.kt @@ -19,7 +19,6 @@ import mozilla.components.browser.state.state.SearchState import mozilla.components.browser.state.store.BrowserStore import org.junit.After import org.junit.Assert.assertEquals -import org.junit.Assert.assertFalse import org.junit.Before import org.junit.Test import org.mozilla.fenix.R @@ -44,12 +43,6 @@ class ShortcutsSuggestionProviderTest { unmockkStatic(AppCompatResources::class) } - @Test - fun `should clear is always false`() { - val provider = ShortcutsSuggestionProvider(mockk(), mockk(), mockk(), mockk()) - assertFalse(provider.shouldClearSuggestions) - } - @Test fun `returns suggestions from search engine provider`() = runBlockingTest { val engineOne = mockk { diff --git a/buildSrc/src/main/java/AndroidComponents.kt b/buildSrc/src/main/java/AndroidComponents.kt index 3d479d6228..f45594908d 100644 --- a/buildSrc/src/main/java/AndroidComponents.kt +++ b/buildSrc/src/main/java/AndroidComponents.kt @@ -3,5 +3,5 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ object AndroidComponents { - const val VERSION = "92.0.20210805225445" + const val VERSION = "92.0.20210806164329" }