refactor: migrate the error dialog to MD3
This commit is contained in:
parent
ec433f5367
commit
1eb7f5a30b
|
@ -47,7 +47,7 @@ public class ErrorDialogActivity extends FragmentActivity {
|
|||
final String message = intent.getStringExtra(EXTRA_MESSAGE);
|
||||
|
||||
// pass the theme, it is not automatically applied due to activity's Theme.NoDisplay
|
||||
final MaterialAlertDialogBuilder builder = new MaterialAlertDialogBuilder(this, R.style.AppThemeDialog);
|
||||
final MaterialAlertDialogBuilder builder = new MaterialAlertDialogBuilder(this);
|
||||
builder.setTitle(title);
|
||||
builder.setNeutralButton(R.string.ok, (dialog, which) -> {
|
||||
setResult(AppCompatActivity.RESULT_OK);
|
||||
|
|
|
@ -131,6 +131,4 @@
|
|||
<item name="android:windowNoTitle">true</item>
|
||||
<item name="android:windowContentOverlay">@null</item>
|
||||
</style>
|
||||
|
||||
<style name="AppThemeDialog" parent="Base.Theme.App"></style>
|
||||
</resources>
|
||||
|
|
Loading…
Reference in New Issue