Bug 1815637 - cherry picking 548379d, the original rtl commit

(cherry picked from commit 8fd38cae82759585482a1ae74be7f246ac092839)
fenix/117.0
mike a 1 year ago committed by mergify[bot]
parent 9912d59d27
commit 58ffeb2905

@ -104,6 +104,7 @@ import mozilla.components.support.ktx.android.view.hideKeyboard
import mozilla.components.support.ktx.kotlin.getOrigin
import mozilla.components.support.ktx.kotlinx.coroutines.flow.ifAnyChanged
import mozilla.components.support.locale.ActivityContextWrapper
import mozilla.components.ui.widgets.withCenterAlignedButtons
import org.mozilla.fenix.BuildConfig
import org.mozilla.fenix.FeatureFlags
import org.mozilla.fenix.GleanMetrics.MediaState
@ -999,7 +1000,7 @@ abstract class BaseBrowserFragment :
}
create()
}.show().secure(activity)
}.show().withCenterAlignedButtons().secure(activity)
context.settings().incrementSecureWarningCount()
}

@ -15,6 +15,7 @@ import kotlinx.coroutines.launch
import mozilla.components.browser.state.state.TabSessionState
import mozilla.components.feature.tab.collections.TabCollection
import mozilla.components.support.ktx.android.view.showKeyboard
import mozilla.components.ui.widgets.withCenterAlignedButtons
import org.mozilla.fenix.R
import org.mozilla.fenix.components.TabCollectionStorage
import org.mozilla.fenix.ext.getDefaultCollectionNumber
@ -79,7 +80,7 @@ fun CollectionsDialog.show(
dialog.cancel()
}
val dialog = builder.create()
val dialog = builder.create().withCenterAlignedButtons()
val collectionNames =
arrayOf(context.getString(R.string.tab_tray_add_new_collection)) + collections
val collectionsListAdapter = CollectionsListAdapter(collectionNames) {
@ -126,7 +127,7 @@ internal fun CollectionsDialog.showAddNewDialog(
onNegativeButtonClick.invoke()
dialog.cancel()
}
.create()
.create().withCenterAlignedButtons()
.show()
collectionNameEditText.setSelection(0, collectionNameEditText.text.length)

@ -29,6 +29,7 @@ import mozilla.components.feature.top.sites.PinnedSiteStorage
import mozilla.components.feature.top.sites.TopSite
import mozilla.components.service.glean.private.NoExtras
import mozilla.components.support.base.feature.ViewBoundFeatureWrapper
import mozilla.components.ui.widgets.withCenterAlignedButtons
import org.mozilla.fenix.GleanMetrics.AppMenu
import org.mozilla.fenix.GleanMetrics.Collections
import org.mozilla.fenix.GleanMetrics.Events
@ -266,7 +267,7 @@ class DefaultBrowserToolbarMenuController(
setPositiveButton(R.string.top_sites_max_limit_confirmation_button) { dialog, _ ->
dialog.dismiss()
}
create()
create().withCenterAlignedButtons()
}.show()
} else {
ioScope.launch {

@ -12,6 +12,7 @@ import android.text.Spanned
import android.text.method.LinkMovementMethod
import android.widget.TextView
import androidx.appcompat.app.AlertDialog
import mozilla.components.ui.widgets.withCenterAlignedButtons
import org.mozilla.fenix.HomeActivity
import org.mozilla.fenix.R
import org.mozilla.fenix.components.metrics.MetricServiceType
@ -79,7 +80,7 @@ fun showPrivacyPopWindow(context: Context, activity: Activity) {
.setTitle(context.getString(R.string.privacy_notice_title))
.setMessage(messageSpannable)
.setCancelable(false)
val alertDialog: AlertDialog = builder.create()
val alertDialog: AlertDialog = builder.create().withCenterAlignedButtons()
alertDialog.show()
alertDialog.findViewById<TextView>(android.R.id.message)?.movementMethod = LinkMovementMethod.getInstance()
}

@ -28,6 +28,7 @@ import mozilla.components.feature.tabs.TabsUseCases
import mozilla.components.feature.top.sites.TopSite
import mozilla.components.service.nimbus.messaging.Message
import mozilla.components.support.ktx.android.view.showKeyboard
import mozilla.components.ui.widgets.withCenterAlignedButtons
import mozilla.telemetry.glean.private.NoExtras
import org.mozilla.fenix.BrowserDirection
import org.mozilla.fenix.GleanMetrics.Collections
@ -312,7 +313,7 @@ class DefaultSessionControlController(
setNegativeButton(R.string.top_sites_rename_dialog_cancel) { dialog, _ ->
dialog.cancel()
}
}.show().also {
}.show().withCenterAlignedButtons().also {
topSiteLabelEditText.setSelection(0, topSiteLabelEditText.text.length)
topSiteLabelEditText.showKeyboard()
}

@ -40,6 +40,7 @@ import mozilla.components.concept.storage.BookmarkNodeType
import mozilla.components.lib.state.ext.consumeFrom
import mozilla.components.support.base.feature.UserInteractionHandler
import mozilla.components.support.ktx.kotlin.toShortUrl
import mozilla.components.ui.widgets.withCenterAlignedButtons
import mozilla.telemetry.glean.private.NoExtras
import org.mozilla.fenix.GleanMetrics.BookmarksManagement
import org.mozilla.fenix.HomeActivity
@ -313,7 +314,7 @@ class BookmarkFragment : LibraryPageFragment<BookmarkNode>(), UserInteractionHan
dialog.dismiss()
}
setCancelable(false)
create()
create().withCenterAlignedButtons()
show()
}
}
@ -418,7 +419,7 @@ class BookmarkFragment : LibraryPageFragment<BookmarkNode>(), UserInteractionHan
operation = getDeleteOperation(BookmarkRemoveType.FOLDER),
)
}
create()
create().withCenterAlignedButtons()
}
.show()
}

@ -37,6 +37,7 @@ import mozilla.components.support.ktx.android.content.getColorFromAttr
import mozilla.components.support.ktx.android.view.hideKeyboard
import mozilla.components.support.ktx.android.view.showKeyboard
import mozilla.components.support.ktx.kotlin.toShortUrl
import mozilla.components.ui.widgets.withCenterAlignedButtons
import mozilla.telemetry.glean.private.NoExtras
import org.mozilla.fenix.GleanMetrics.BookmarksManagement
import org.mozilla.fenix.NavHostActivity
@ -246,7 +247,7 @@ class EditBookmarkFragment : Fragment(R.layout.fragment_edit_bookmark), MenuProv
}
dialog.dismiss()
}
create()
create().withCenterAlignedButtons()
}.show()
}
}

@ -39,6 +39,7 @@ import mozilla.components.service.fxa.SyncEngine
import mozilla.components.service.fxa.sync.SyncReason
import mozilla.components.support.base.feature.UserInteractionHandler
import mozilla.components.support.ktx.kotlin.toShortUrl
import mozilla.components.ui.widgets.withCenterAlignedButtons
import mozilla.telemetry.glean.private.NoExtras
import org.mozilla.fenix.BrowserDirection
import org.mozilla.fenix.FeatureFlags
@ -438,7 +439,7 @@ class HistoryFragment : LibraryPageFragment<History>(), UserInteractionHandler,
}
GleanHistory.removePromptOpened.record(NoExtras())
}.create()
}.create().withCenterAlignedButtons()
}
@Suppress("UnusedPrivateMember")

@ -28,6 +28,7 @@ import mozilla.components.lib.state.ext.consumeFrom
import mozilla.components.lib.state.ext.flowScoped
import mozilla.components.support.base.feature.UserInteractionHandler
import mozilla.components.support.ktx.kotlin.toShortUrl
import mozilla.components.ui.widgets.withCenterAlignedButtons
import org.mozilla.fenix.HomeActivity
import org.mozilla.fenix.R
import org.mozilla.fenix.addons.showSnackBar
@ -282,7 +283,7 @@ class HistoryMetadataGroupFragment :
interactor.onDeleteAllConfirmed()
dialog.dismiss()
}
.create()
.create().withCenterAlignedButtons()
companion object {
const val TAG = "DELETE_CONFIRMATION_DIALOG_FRAGMENT"

@ -18,6 +18,7 @@ import mozilla.components.browser.state.store.BrowserStore
import mozilla.components.concept.engine.EngineSession.LoadUrlFlags
import mozilla.components.feature.tabs.TabsUseCases
import mozilla.components.support.ktx.kotlin.isUrl
import mozilla.components.ui.widgets.withCenterAlignedButtons
import org.mozilla.fenix.BrowserDirection
import org.mozilla.fenix.GleanMetrics.Events
import org.mozilla.fenix.GleanMetrics.SearchShortcuts
@ -318,7 +319,7 @@ class SearchDialogController(
dialog.cancel()
activity.startActivity(intent)
}
create()
create().withCenterAlignedButtons()
}
}
}

@ -71,6 +71,7 @@ import mozilla.components.support.ktx.android.view.hideKeyboard
import mozilla.components.support.ktx.kotlin.toNormalizedUrl
import mozilla.components.support.ktx.kotlinx.coroutines.flow.ifAnyChanged
import mozilla.components.ui.autocomplete.InlineAutocompleteEditText
import mozilla.components.ui.widgets.withCenterAlignedButtons
import org.mozilla.fenix.BrowserDirection
import org.mozilla.fenix.GleanMetrics.Awesomebar
import org.mozilla.fenix.GleanMetrics.VoiceSearch
@ -694,7 +695,7 @@ class SearchDialogFragment : AppCompatDialogFragment(), UserInteractionHandler {
setPositiveButton(R.string.qr_scanner_dialog_invalid_ok) { dialog: DialogInterface, _ ->
dialog.dismiss()
}
create()
create().withCenterAlignedButtons()
}.show()
}
} else {
@ -719,7 +720,7 @@ class SearchDialogFragment : AppCompatDialogFragment(), UserInteractionHandler {
)
dialog.dismiss()
}
create()
create().withCenterAlignedButtons()
}.show()
}
}

@ -38,6 +38,7 @@ import mozilla.components.concept.sync.OAuthAccount
import mozilla.components.concept.sync.Profile
import mozilla.components.service.glean.private.NoExtras
import mozilla.components.support.ktx.android.view.showKeyboard
import mozilla.components.ui.widgets.withCenterAlignedButtons
import org.mozilla.fenix.BrowserDirection
import org.mozilla.fenix.Config
import org.mozilla.fenix.FeatureFlags
@ -423,7 +424,7 @@ class SettingsFragment : PreferenceFragmentCompat() {
binding.customAmoUser.setText(context.settings().overrideAmoUser)
binding.customAmoUser.requestFocus()
binding.customAmoUser.showKeyboard()
create()
create().withCenterAlignedButtons()
}.show()
null

@ -13,6 +13,7 @@ import android.widget.ListView
import android.widget.TextView
import androidx.appcompat.app.AlertDialog
import androidx.fragment.app.Fragment
import mozilla.components.ui.widgets.withCenterAlignedButtons
import org.mozilla.fenix.R
import org.mozilla.fenix.databinding.FragmentAboutLibrariesBinding
import org.mozilla.fenix.ext.showToolbar
@ -98,6 +99,7 @@ class AboutLibrariesFragment : Fragment(R.layout.fragment_about_libraries) {
.setTitle(libraryItem.name)
.setMessage(libraryItem.license)
.create()
.withCenterAlignedButtons()
dialog.show()
val textView = dialog.findViewById<TextView>(android.R.id.message)!!

@ -35,6 +35,7 @@ import mozilla.components.service.fxa.sync.SyncStatusObserver
import mozilla.components.service.fxa.sync.getLastSynced
import mozilla.components.service.fxa.sync.setLastSynced
import mozilla.components.support.ktx.android.content.getColorFromAttr
import mozilla.components.ui.widgets.withCenterAlignedButtons
import mozilla.telemetry.glean.private.NoExtras
import org.mozilla.fenix.Config
import org.mozilla.fenix.FeatureFlags
@ -294,7 +295,7 @@ class AccountSettingsFragment : PreferenceFragmentCompat() {
)
startActivity(intent)
}
create()
create().withCenterAlignedButtons()
}.show().secure(activity)
it.settings().incrementShowLoginsSecureWarningSyncCount()
}

@ -12,6 +12,7 @@ import android.provider.Settings
import android.text.SpannableString
import androidx.annotation.VisibleForTesting
import androidx.appcompat.app.AlertDialog
import mozilla.components.ui.widgets.withCenterAlignedButtons
import org.mozilla.fenix.HomeActivity
import org.mozilla.fenix.R
import org.mozilla.fenix.settings.SupportUtils
@ -68,7 +69,7 @@ class DefaultSyncController(
dialog.cancel()
activity.startActivity(intent)
}
create()
create().withCenterAlignedButtons()
}
}
}

@ -16,6 +16,7 @@ import mozilla.components.concept.storage.Address
import mozilla.components.concept.storage.UpdatableAddressFields
import mozilla.components.support.ktx.android.view.hideKeyboard
import mozilla.components.support.ktx.android.view.showKeyboard
import mozilla.components.ui.widgets.withCenterAlignedButtons
import org.mozilla.fenix.GleanMetrics.Addresses
import org.mozilla.fenix.R
import org.mozilla.fenix.databinding.FragmentAddressEditorBinding
@ -120,7 +121,7 @@ class AddressEditorView(
interactor.onDeleteAddress(guid)
Addresses.deleted.add()
}
create()
create().withCenterAlignedButtons()
}.show()
}

@ -26,6 +26,7 @@ import kotlinx.coroutines.launch
import mozilla.components.lib.state.ext.consumeFrom
import mozilla.components.service.fxa.SyncEngine
import mozilla.components.service.sync.autofill.AutofillCreditCardsAddressesStorage
import mozilla.components.ui.widgets.withCenterAlignedButtons
import org.mozilla.fenix.NavGraphDirections
import org.mozilla.fenix.R
import org.mozilla.fenix.components.StoreProvider
@ -291,7 +292,7 @@ class AutofillSettingFragment : BiometricPromptPreferenceFragment() {
startActivity(intent)
}
create()
create().withCenterAlignedButtons()
}.show().secure(activity)
context.settings().incrementSecureWarningCount()
}

@ -22,6 +22,7 @@ import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext
import mozilla.components.support.ktx.android.view.hideKeyboard
import mozilla.components.support.ktx.android.view.showKeyboard
import mozilla.components.ui.widgets.withCenterAlignedButtons
import org.mozilla.fenix.R
import org.mozilla.fenix.SecureFragment
import org.mozilla.fenix.databinding.FragmentCreditCardEditorBinding
@ -155,7 +156,7 @@ class CreditCardEditorFragment :
dialog.cancel()
}
setPositiveButton(R.string.credit_cards_delete_dialog_button, onPositiveClickListener)
create()
create().withCenterAlignedButtons()
}.show()
}

@ -20,6 +20,7 @@ import kotlinx.coroutines.flow.map
import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext
import mozilla.components.lib.state.ext.flowScoped
import mozilla.components.ui.widgets.withCenterAlignedButtons
import org.mozilla.fenix.R
import org.mozilla.fenix.components.FenixSnackbar
import org.mozilla.fenix.databinding.FragmentDeleteBrowsingDataBinding
@ -150,7 +151,7 @@ class DeleteBrowsingDataFragment : Fragment(R.layout.fragment_delete_browsing_da
it.dismiss()
deleteSelected()
}
create()
create().withCenterAlignedButtons()
}.show()
}
}

@ -23,6 +23,7 @@ import androidx.navigation.fragment.navArgs
import com.google.android.material.snackbar.Snackbar
import mozilla.components.lib.state.ext.consumeFrom
import mozilla.components.service.glean.private.NoExtras
import mozilla.components.ui.widgets.withCenterAlignedButtons
import org.mozilla.fenix.BrowserDirection
import org.mozilla.fenix.GleanMetrics.Logins
import org.mozilla.fenix.HomeActivity
@ -220,7 +221,7 @@ class LoginDetailFragment : SecureFragment(R.layout.fragment_login_detail), Menu
interactor.onDeleteLogin(args.savedLoginId)
dialog.dismiss()
}
create()
create().withCenterAlignedButtons()
}.show()
}
}

@ -26,6 +26,7 @@ import mozilla.components.feature.autofill.preference.AutofillPreference
import mozilla.components.service.fxa.SyncEngine
import mozilla.components.service.glean.private.NoExtras
import mozilla.components.support.base.feature.ViewBoundFeatureWrapper
import mozilla.components.ui.widgets.withCenterAlignedButtons
import org.mozilla.fenix.GleanMetrics.Logins
import org.mozilla.fenix.R
import org.mozilla.fenix.components.accounts.FenixFxAEntryPoint
@ -215,7 +216,7 @@ class SavedLoginsAuthFragment : PreferenceFragmentCompat() {
val intent = Intent(ACTION_SECURITY_SETTINGS)
startActivity(intent)
}
create()
create().withCenterAlignedButtons()
}.show().secure(activity)
context.settings().incrementSecureWarningCount()
}

@ -18,6 +18,7 @@ import androidx.navigation.NavController
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch
import mozilla.components.ui.widgets.withCenterAlignedButtons
import org.mozilla.fenix.R
import org.mozilla.fenix.databinding.QuicksettingsClearSiteDataBinding
import org.mozilla.fenix.ext.components
@ -107,7 +108,7 @@ class ClearSiteDataView(
it.dismiss()
interactor.onClearSiteDataClicked(baseDomain)
}
create()
create().withCenterAlignedButtons()
}.show()
}
}

@ -19,6 +19,7 @@ import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext
import mozilla.components.concept.engine.permission.SitePermissions
import mozilla.components.support.ktx.kotlin.stripDefaultPort
import mozilla.components.ui.widgets.withCenterAlignedButtons
import org.mozilla.fenix.R
import org.mozilla.fenix.ext.components
import org.mozilla.fenix.ext.requireComponents
@ -145,7 +146,7 @@ class SitePermissionsDetailsExceptionsFragment : PreferenceFragmentCompat() {
setNegativeButton(R.string.clear_permissions_negative) { dialog: DialogInterface, _ ->
dialog.cancel()
}
}.show()
}.show().withCenterAlignedButtons()
true
}

@ -30,6 +30,7 @@ import kotlinx.coroutines.flow.collect
import kotlinx.coroutines.launch
import mozilla.components.concept.engine.permission.SitePermissions
import mozilla.components.support.ktx.kotlin.stripDefaultPort
import mozilla.components.ui.widgets.withCenterAlignedButtons
import org.mozilla.fenix.NavHostActivity
import org.mozilla.fenix.R
import org.mozilla.fenix.ext.components
@ -119,7 +120,7 @@ class SitePermissionsExceptionsFragment :
setNegativeButton(R.string.clear_permissions_negative) { dialog: DialogInterface, _ ->
dialog.cancel()
}
}.show()
}.show().withCenterAlignedButtons()
}
}

@ -26,6 +26,7 @@ import kotlinx.coroutines.launch
import mozilla.components.concept.engine.permission.SitePermissions
import mozilla.components.concept.engine.permission.SitePermissions.Status.ALLOWED
import mozilla.components.concept.engine.permission.SitePermissions.Status.BLOCKED
import mozilla.components.ui.widgets.withCenterAlignedButtons
import org.mozilla.fenix.R
import org.mozilla.fenix.ext.requireComponents
import org.mozilla.fenix.ext.settings
@ -162,7 +163,7 @@ class SitePermissionsManageExceptionsPhoneFeatureFragment : Fragment() {
setNegativeButton(R.string.clear_permission_negative) { dialog: DialogInterface, _ ->
dialog.cancel()
}
}.show()
}.show().withCenterAlignedButtons()
}
}

@ -19,6 +19,7 @@ import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter
import com.google.android.material.button.MaterialButton
import mozilla.components.service.nimbus.messaging.MESSAGING_FEATURE_ID
import mozilla.components.ui.widgets.withCenterAlignedButtons
import org.mozilla.experiments.nimbus.internal.EnrolledExperiment
import org.mozilla.fenix.R
import org.mozilla.fenix.settings.studies.CustomViewHolder.SectionViewHolder
@ -141,7 +142,7 @@ class StudiesAdapter(
.setTitle(R.string.preference_experiments_2)
.setMessage(R.string.studies_restart_app)
.setCancelable(false)
val alertDialog: AlertDialog = builder.create()
val alertDialog: AlertDialog = builder.create().withCenterAlignedButtons()
alertDialog.show()
return alertDialog
}

@ -22,6 +22,7 @@ import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch
import mozilla.components.service.nimbus.NimbusApi
import mozilla.components.support.base.log.logger.Logger
import mozilla.components.ui.widgets.withCenterAlignedButtons
import mozilla.telemetry.glean.private.NoExtras
import org.mozilla.experiments.nimbus.internal.EnrolledExperiment
import org.mozilla.fenix.GleanMetrics.Preferences
@ -82,7 +83,7 @@ class StudiesView(
.setTitle(R.string.preference_experiments_2)
.setMessage(R.string.studies_restart_app)
.setCancelable(false)
val alertDialog: AlertDialog = builder.create()
val alertDialog: AlertDialog = builder.create().withCenterAlignedButtons()
alertDialog.show()
}
bindDescription()

@ -8,6 +8,7 @@ import android.os.Bundle
import android.view.View
import androidx.appcompat.app.AlertDialog
import androidx.fragment.app.Fragment
import mozilla.components.ui.widgets.withCenterAlignedButtons
import org.mozilla.fenix.BrowserDirection
import org.mozilla.fenix.HomeActivity
import org.mozilla.fenix.R
@ -44,7 +45,7 @@ class AddNewDeviceFragment : Fragment(R.layout.fragment_add_new_device) {
AlertDialog.Builder(requireContext()).apply {
setMessage(R.string.sync_connect_device_dialog)
setPositiveButton(R.string.sync_confirmation_button) { dialog, _ -> dialog.cancel() }
create()
create().withCenterAlignedButtons()
}.show()
}
}

@ -17,6 +17,7 @@
android:layout_width="0dp"
android:layout_height="0dp"
android:gravity="center"
android:textAlignment="center"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"

@ -179,6 +179,7 @@
android:layout_height="wrap_content"
android:background="?android:attr/selectableItemBackground"
android:text="@string/create_collection_save"
android:textAlignment="center"
android:textColor="?textActionPrimary"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="parent"

@ -36,6 +36,7 @@
android:alpha="0"
android:background="?android:attr/selectableItemBackgroundBorderless"
android:text="@string/create_collection_select_all"
android:textAlignment="center"
android:textAllCaps="false"
android:textColor="@color/fx_mobile_text_color_oncolor_primary"
android:textSize="16sp"
@ -153,6 +154,7 @@
android:layout_height="wrap_content"
android:background="?android:attr/selectableItemBackground"
android:text="@string/create_collection_save"
android:textAlignment="center"
android:textAppearance="@style/TextAppearance.MaterialComponents.Button"
android:textColor="?textActionPrimary"
app:layout_constraintBottom_toBottomOf="parent"

@ -36,6 +36,7 @@
android:alpha="0"
android:background="?android:attr/selectableItemBackgroundBorderless"
android:text="@string/create_collection_select_all"
android:textAlignment="center"
android:textAllCaps="false"
android:textColor="@color/fx_mobile_text_color_oncolor_primary"
android:textSize="16sp"
@ -158,6 +159,7 @@
android:alpha="0.0"
android:background="?android:attr/selectableItemBackground"
android:text="@string/create_collection_save"
android:textAlignment="center"
android:textAppearance="@style/TextAppearance.MaterialComponents.Button"
android:textColor="?textActionPrimary"
android:visibility="gone"

@ -26,6 +26,7 @@
android:layout_height="0dp"
android:gravity="center"
android:text="@string/download_empty_message_1"
android:textAlignment="center"
android:textColor="?attr/textSecondary"
android:textSize="16sp"
android:visibility="gone"

@ -40,6 +40,7 @@
android:layout_height="0dp"
android:gravity="center"
android:text="@string/history_empty_message"
android:textAlignment="center"
android:textColor="?attr/textSecondary"
android:textSize="16sp"
android:visibility="gone"

@ -14,6 +14,7 @@
android:layout_height="0dp"
android:gravity="center"
android:text="@string/history_empty_message"
android:textAlignment="center"
android:textColor="?attr/textSecondary"
android:textSize="16sp"
android:visibility="gone"

@ -51,7 +51,7 @@
android:minHeight="48dp"
android:paddingTop="8dp"
android:paddingBottom="8dp"
android:textAlignment="textEnd"
android:textAlignment="center"
android:textAllCaps="true"
android:textColor="@color/photonWhite"
android:textSize="14sp"

@ -29,6 +29,7 @@
android:layout_gravity="center"
android:gravity="center"
android:text="@string/no_add_ons"
android:textAlignment="center"
android:textColor="?attr/textSecondary"
android:textSize="16sp"
android:visibility="gone"/>

@ -438,6 +438,7 @@
android:letterSpacing="0"
android:padding="10dp"
android:text="@string/addressess_delete_address_button"
android:textAlignment="center"
android:textAllCaps="false"
android:textColor="@color/fx_mobile_text_color_warning"
android:visibility="gone"
@ -453,6 +454,7 @@
android:letterSpacing="0"
android:padding="10dp"
android:text="@string/addresses_cancel_button"
android:textAlignment="center"
android:textAllCaps="false"
android:textColor="?attr/textPrimary"
android:textStyle="bold"

@ -178,6 +178,7 @@
android:letterSpacing="0"
android:padding="10dp"
android:text="@string/credit_cards_delete_card_button"
android:textAlignment="center"
android:textAllCaps="false"
android:textColor="@color/fx_mobile_text_color_warning"
android:visibility="gone"
@ -192,6 +193,7 @@
android:letterSpacing="0"
android:padding="10dp"
android:text="@string/credit_cards_cancel_button"
android:textAlignment="center"
android:textAllCaps="false"
android:textColor="?attr/textPrimary"
android:textStyle="bold"

@ -84,6 +84,7 @@
android:layout_height="wrap_content"
android:letterSpacing="0"
android:text="@string/add_to_homescreen_continue"
android:textAlignment="center"
android:textAllCaps="false"
android:textColor="?attr/textPrimary"
android:textSize="16sp"

@ -32,6 +32,7 @@
android:padding="10dp"
android:scrollbars="none"
android:text="@string/sign_out_cancel"
android:textAlignment="center"
android:textAllCaps="false"
android:textColor="?attr/textPrimary"
android:textStyle="bold"

@ -37,6 +37,7 @@
android:layout_height="0dp"
android:gravity="center"
android:text="@string/no_site_exceptions"
android:textAlignment="center"
android:textColor="?attr/textPrimary"
android:textSize="20sp"
android:visibility="gone"

@ -21,6 +21,7 @@
android:layout_height="wrap_content"
android:gravity="center"
android:text="@string/sign_in_with_camera"
android:textAlignment="center"
android:textAppearance="@style/Header16TextStyle"
android:textColor="?attr/textPrimary"
android:textSize="20sp"
@ -48,6 +49,7 @@
android:layout_marginTop="16dp"
android:gravity="center"
tools:text="@string/sign_in_instructions"
android:textAlignment="center"
android:textColor="?attr/textPrimary"
android:textSize="16sp"
app:layout_constraintEnd_toEndOf="parent"
@ -78,7 +80,7 @@
android:id="@+id/createAccount"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:gravity="center"
android:textAlignment="center"
android:textAppearance="@style/Body14TextStyle"
app:layout_constraintTop_toBottomOf="@id/signInEmailButton"
app:layout_constraintEnd_toEndOf="parent"

@ -21,9 +21,9 @@
android:layout_height="match_parent"
android:focusable="true"
android:focusableInTouchMode="true"
android:gravity="center_horizontal"
android:paddingTop="80dp"
android:text="@string/no_open_tabs_description"
android:textAlignment="center"
android:textColor="?attr/textSecondary"
android:textSize="16sp"
android:visibility="visible" />

@ -21,9 +21,9 @@
android:layout_height="match_parent"
android:focusable="true"
android:focusableInTouchMode="true"
android:gravity="center_horizontal"
android:paddingTop="80dp"
android:text="@string/no_open_tabs_description"
android:textAlignment="center"
android:textColor="?attr/textSecondary"
android:textSize="16sp"
android:visibility="visible" />

@ -91,6 +91,7 @@
android:paddingStart="8dp"
android:paddingEnd="8dp"
android:text="@string/mozac_feature_downloads_dialog_download"
android:textAlignment="center"
android:background="@drawable/download_dialog_download_button_background"
android:textColor="?attr/textOnColorPrimary"
android:textAllCaps="false"

@ -16,6 +16,7 @@
<!-- Android system styling -->
<item name="searchViewStyle">@style/SearchViewStyle</item>
<item name="autoCompleteTextViewStyle">@style/AutoCompleteTextViewStyle</item>
<item name="android:textAlignment">viewStart</item>
<item name="android:windowContentTransitions">true</item>
<item name="android:windowAnimationStyle">@style/WindowAnimationTransition</item>
<item name="android:progressBarStyleHorizontal">@style/progressBarStyleHorizontal</item>
@ -217,6 +218,7 @@
<!-- Android system styling -->
<item name="searchViewStyle">@style/SearchViewStyle</item>
<item name="autoCompleteTextViewStyle">@style/AutoCompleteTextViewStyle</item>
<item name="android:textAlignment">viewStart</item>
<item name="android:windowContentTransitions">true</item>
<item name="android:windowAnimationStyle">@style/WindowAnimationTransition</item>
<item name="android:progressBarStyleHorizontal">@style/progressBarStyleHorizontal</item>
@ -598,6 +600,7 @@
<item name="android:layout_height">wrap_content</item>
<item name="android:minHeight">40dp</item>
<item name="android:layout_marginTop">32dp</item>
<item name="android:textAlignment">center</item>
<item name="android:textColor">?accentUsedOnDarkBackground</item>
<item name="android:textFontWeight" tools:ignore="NewApi">@integer/font_weight_medium</item>
<item name="android:fontWeight" tools:ignore="NewApi">@integer/font_weight_medium</item>

Loading…
Cancel
Save