Fix confirmation popup issue with light theme.

This commit is contained in:
tom79 2019-06-09 10:48:18 +02:00
parent a238b3ca04
commit 9fc8e8e4e4
1 changed files with 11 additions and 1 deletions

View File

@ -404,7 +404,17 @@ public class PhotoEditorActivity extends BaseActivity implements OnPhotoEditorL
}
private void showSaveDialog() {
AlertDialog.Builder builder = new AlertDialog.Builder(this);
int style;
SharedPreferences sharedpreferences = getSharedPreferences(Helper.APP_PREFS, MODE_PRIVATE);
int theme = sharedpreferences.getInt(Helper.SET_THEME, Helper.THEME_DARK);
if (theme == Helper.THEME_DARK) {
style = R.style.DialogDark;
} else if (theme == Helper.THEME_BLACK){
style = R.style.DialogBlack;
}else {
style = R.style.Dialog;
}
AlertDialog.Builder builder = new AlertDialog.Builder(this, style);
builder.setMessage( getString(R.string.confirm_exit_editing));
builder.setPositiveButton(R.string.save, new DialogInterface.OnClickListener() {
@Override