commit a52439f8d377492e74d6bb0fe6f199f7a7307420 parent 18653126ab20f74f6445523e86cf9d6b0b813a67 Author: Gabriel Luong <gabriel.luong@gmail.com> Date: Thu, 6 Nov 2025 19:09:43 +0000 Bug 1998601 - Remove unnecessary ExperimentalMaterial3Api opts in r=android-reviewers,007 Differential Revision: https://phabricator.services.mozilla.com/D271539 Diffstat:
4 files changed, 0 insertions(+), 10 deletions(-)
diff --git a/mobile/android/android-components/components/compose/base/src/main/java/mozilla/components/compose/base/textfield/TextField.kt b/mobile/android/android-components/components/compose/base/src/main/java/mozilla/components/compose/base/textfield/TextField.kt @@ -19,7 +19,6 @@ import androidx.compose.foundation.layout.width import androidx.compose.foundation.text.BasicTextField import androidx.compose.foundation.text.KeyboardActions import androidx.compose.foundation.text.KeyboardOptions -import androidx.compose.material3.ExperimentalMaterial3Api import androidx.compose.material3.Icon import androidx.compose.material3.Text import androidx.compose.material3.TextFieldDefaults @@ -86,7 +85,6 @@ private val TrailingIconHeight = 24.dp * called. Note that this IME action may be different from what you specified in * [KeyboardOptions.imeAction]. */ -@OptIn(ExperimentalMaterial3Api::class) @Suppress("LongMethod") @Composable fun TextField( diff --git a/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/home/pocket/ui/StoryCard.kt b/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/home/pocket/ui/StoryCard.kt @@ -16,7 +16,6 @@ import androidx.compose.foundation.layout.width import androidx.compose.foundation.shape.RoundedCornerShape import androidx.compose.material3.Card import androidx.compose.material3.CardDefaults -import androidx.compose.material3.ExperimentalMaterial3Api import androidx.compose.material3.Text import androidx.compose.runtime.Composable import androidx.compose.ui.Alignment @@ -44,7 +43,6 @@ private val defaultCardContentPadding = 8.dp private val imageWidth = 345.dp private val imageHeight = 180.dp -@OptIn(ExperimentalMaterial3Api::class) @Composable internal fun StoryCard( story: PocketStory, diff --git a/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/settings/address/ui/edit/EditAddressScreen.kt b/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/settings/address/ui/edit/EditAddressScreen.kt @@ -2,8 +2,6 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -@file:OptIn(ExperimentalMaterial3Api::class) - package org.mozilla.fenix.settings.address.ui.edit import androidx.compose.foundation.layout.Arrangement @@ -15,7 +13,6 @@ import androidx.compose.foundation.layout.width import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.items import androidx.compose.foundation.lazy.rememberLazyListState -import androidx.compose.material3.ExperimentalMaterial3Api import androidx.compose.material3.Scaffold import androidx.compose.runtime.Composable import androidx.compose.runtime.LaunchedEffect diff --git a/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/settings/settingssearch/SettingsSearchFragment.kt b/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/settings/settingssearch/SettingsSearchFragment.kt @@ -2,8 +2,6 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -@file:OptIn(ExperimentalMaterial3Api::class) - package org.mozilla.fenix.settings.settingssearch import android.os.Bundle @@ -11,7 +9,6 @@ import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.appcompat.app.AppCompatActivity -import androidx.compose.material3.ExperimentalMaterial3Api import androidx.fragment.app.Fragment import androidx.fragment.compose.content import androidx.lifecycle.DefaultLifecycleObserver