Add new dialog style to all AlertDialog instances within the app

This commit is contained in:
uykek 2020-06-07 10:34:23 +02:00
parent 3232c7eb3f
commit 05cc8aec51
3 changed files with 5 additions and 5 deletions

View file

@ -143,7 +143,7 @@ public class GameActivity extends BaseActivity implements NavigationView.OnNavig
}
if (!startGame) {
AlertDialog.Builder builder = new AlertDialog.Builder(GameActivity.this);
AlertDialog.Builder builder = new AlertDialog.Builder(GameActivity.this, R.style.AppTheme_Dialog);
builder.setMessage(R.string.impossible_import_notice)
.setCancelable(false)
.setPositiveButton(R.string.okay, new DialogInterface.OnClickListener() {
@ -593,7 +593,7 @@ public class GameActivity extends BaseActivity implements NavigationView.OnNavig
@Override
public Dialog onCreateDialog(Bundle savedInstanceState) {
AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
AlertDialog.Builder builder = new AlertDialog.Builder(getActivity(), R.style.AppTheme_Dialog);
LayoutInflater inflater = getActivity().getLayoutInflater();
DialogFragmentShareBoardBinding binding = DialogFragmentShareBoardBinding.inflate(inflater);
@ -634,7 +634,7 @@ public class GameActivity extends BaseActivity implements NavigationView.OnNavig
@Override
public Dialog onCreateDialog(Bundle savedInstanceState) {
// Use the Builder class for convenient dialog construction
AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
AlertDialog.Builder builder = new AlertDialog.Builder(getActivity(), R.style.AppTheme_Dialog);
builder.setMessage(R.string.reset_confirmation)
.setPositiveButton(R.string.reset_confirmation_confirm, new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {

View file

@ -146,7 +146,7 @@ public class LoadGameActivity extends BaseActivity implements IDeleteDialogFragm
@Override
public Dialog onCreateDialog(Bundle savedInstanceState) {
// Use the Builder class for convenient dialog construction
AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
AlertDialog.Builder builder = new AlertDialog.Builder(getActivity(), R.style.AppTheme_Dialog);
builder.setMessage(R.string.loadgame_delete_confirmation)
.setPositiveButton(R.string.loadgame_delete_confirm, new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {

View file

@ -218,7 +218,7 @@ public class SudokuSpecialButtonLayout extends LinearLayout implements IHighligh
@Override
public Dialog onCreateDialog(Bundle savedInstanceState) {
// Use the Builder class for convenient dialog construction
AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
AlertDialog.Builder builder = new AlertDialog.Builder(getActivity(), R.style.AppTheme_Dialog);
builder.setMessage(R.string.hint_confirmation)
.setPositiveButton(R.string.hint_confirmation_confirm, new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {