refactor: migrate the error dialog to MD3

This commit is contained in:
proletarius101 2024-03-20 22:43:29 +08:00
parent ec433f5367
commit 1eb7f5a30b
2 changed files with 1 additions and 3 deletions

View File

@ -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);

View File

@ -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>