Cherish: Explain to the user why LS Blur is disabled
Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user