Cherish: Explain to the user why LS Blur is disabled

Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
spkal01
2021-06-02 11:07:01 +05:30
committed by Hưng Phan
parent 8b8a6de242
commit 7d79cc9d06
2 changed files with 3 additions and 1 deletions

View File

@@ -1271,4 +1271,5 @@
<!-- Lockscreen blur -->
<string name="lockscreen_blur_title">Background blur</string>
<string name="lockscreen_blur_disabled">Lock screen Blur cannot be enabled because your current lock screen wallpaper does not match your home screen one, or your device does not support Blur at all.</string>
</resources>

View File

@@ -99,7 +99,8 @@ public class LockScreenSettings extends SettingsPreferenceFragment implements
ParcelFileDescriptor pfd = manager.getWallpaperFile(WallpaperManager.FLAG_LOCK);
mLockscreenBlur = (SystemSettingSeekBarPreference) findPreference(KEY_LOCKSCREEN_BLUR);
if (!Utils.isBlurSupported() || pfd != null) {
prefScreen.removePreference(mLockscreenBlur);
mLockscreenBlur.setEnabled(false);
mLockscreenBlur.setSummary(getString(R.string.lockscreen_blur_disabled));
}
mFODIconPickerCategory = findPreference(FOD_ICON_PICKER_CATEGORY);