use material 3
This commit is contained in:
+2
-2
@@ -7,7 +7,7 @@
|
|||||||
package eu.weblibre.flutter_mozilla_components.activities
|
package eu.weblibre.flutter_mozilla_components.activities
|
||||||
|
|
||||||
import android.app.Activity
|
import android.app.Activity
|
||||||
import android.app.AlertDialog
|
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import android.content.Intent
|
import android.content.Intent
|
||||||
import android.content.pm.ShortcutManager
|
import android.content.pm.ShortcutManager
|
||||||
@@ -421,7 +421,7 @@ class IntentReceiverActivity : Activity() {
|
|||||||
"The original profile's app state and saved data will not be used.\n\n" +
|
"The original profile's app state and saved data will not be used.\n\n" +
|
||||||
"Do you want to proceed anyway?"
|
"Do you want to proceed anyway?"
|
||||||
|
|
||||||
AlertDialog.Builder(this)
|
MaterialAlertDialogBuilder(this)
|
||||||
.setTitle("Profile Mismatch")
|
.setTitle("Profile Mismatch")
|
||||||
.setMessage(message)
|
.setMessage(message)
|
||||||
.setPositiveButton("Open in Current Profile") { _, _ ->
|
.setPositiveButton("Open in Current Profile") { _, _ ->
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources>
|
<resources>
|
||||||
<style name="Theme.AppCompat.Translucent" parent="Theme.AppCompat.NoActionBar">
|
<style name="Theme.AppCompat.Translucent" parent="Theme.Material3.DayNight.NoActionBar">
|
||||||
<item name="android:windowNoTitle">true</item>
|
<item name="android:windowNoTitle">true</item>
|
||||||
<item name="android:windowBackground">@android:color/transparent</item>
|
<item name="android:windowBackground">@android:color/transparent</item>
|
||||||
<item name="android:colorBackgroundCacheHint">@null</item>
|
<item name="android:colorBackgroundCacheHint">@null</item>
|
||||||
|
|||||||
Reference in New Issue
Block a user