削除ダイアログをMaterialAlertDialogに

This commit is contained in:
ろむねこ 2024-01-25 11:37:47 +09:00
parent 434d58bd47
commit d94aab43d5
No known key found for this signature in database
GPG Key ID: FA1F39A1BA37D168

View File

@ -187,7 +187,7 @@ public class ViewerListFragment extends Fragment {
return true;
} else if (item.getItemId() == R.id.action_delete) {
// TODO-rca: デザインをMaterial Design 3に合わせたカスタムダイアログにする
AlertDialog.Builder builder = new AlertDialog.Builder(getContext());
MaterialAlertDialogBuilder builder = new MaterialAlertDialogBuilder(requireContext());
builder.setTitle("ファイルの削除");
builder.setMessage("ファイルを削除しますか?");
builder.setPositiveButton("削除", (dialog, which) -> {