Skip to content

Commit

Permalink
优化
Browse files Browse the repository at this point in the history
  • Loading branch information
gedoor committed Jan 10, 2019
1 parent 81aaba1 commit 25fda43
Showing 1 changed file with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,7 @@ public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, Strin
settingActivity.preferences.edit().putInt("colorBackground", settingActivity.getResources().getColor(R.color.md_grey_100)).apply();
upTheme(false);
})
.setNegativeButton(R.string.cancel, (dialogInterface, i) -> {
upTheme(false);
})
.setNegativeButton(R.string.cancel, (dialogInterface, i) -> upTheme(false))
.show();
ATH.setAlertDialogTint(alertDialog);
} else {
Expand All @@ -111,9 +109,7 @@ public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, Strin
settingActivity.preferences.edit().putInt("colorBackgroundNight", settingActivity.getResources().getColor(R.color.md_grey_800)).apply();
upTheme(true);
})
.setNegativeButton(R.string.cancel, (dialogInterface, i) -> {
upTheme(true);
})
.setNegativeButton(R.string.cancel, (dialogInterface, i) -> upTheme(true))
.show();
ATH.setAlertDialogTint(alertDialog);

Expand Down Expand Up @@ -150,8 +146,7 @@ public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen, Preferen
MApplication.getInstance().upThemeStore();
RxBus.get().post(RxBusTag.RECREATE, true);
})
.setNegativeButton(R.string.cancel, (dialogInterface, i) -> {
})
.setNegativeButton(R.string.cancel, (dialogInterface, i) -> {})
.show();
ATH.setAlertDialogTint(alertDialog);
}
Expand Down

0 comments on commit 25fda43

Please sign in to comment.