From 25fda438cdbc8e3b5dd71b7b3d28a13b52026fa8 Mon Sep 17 00:00:00 2001 From: GKF Date: Thu, 10 Jan 2019 13:10:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../view/fragment/ThemeSettingsFragment.java | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) 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); }