diff --git a/app/src/main/java/com/kunfei/bookshelf/view/fragment/ThemeSettingsFragment.java b/app/src/main/java/com/kunfei/bookshelf/view/fragment/ThemeSettingsFragment.java index 386f000e39..43e54e7bd1 100644 --- a/app/src/main/java/com/kunfei/bookshelf/view/fragment/ThemeSettingsFragment.java +++ b/app/src/main/java/com/kunfei/bookshelf/view/fragment/ThemeSettingsFragment.java @@ -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 { @@ -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); @@ -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); }