From 753629699d7488e8ef901234209f2aa0f672aa1b Mon Sep 17 00:00:00 2001 From: Jorge Ruesga Date: Sat, 21 Jun 2014 02:17:58 +0200 Subject: photophase: restrict max value for background dim A excessive dim will just display a black screen. Restrict the max value to a proper translucent value. Change-Id: I2e90541b2bff1554e745df1e84bd96e19e989a54 Signed-off-by: Jorge Ruesga --- .../wallpapers/photophase/preferences/GeneralPreferenceFragment.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/org/cyanogenmod/wallpapers/photophase/preferences/GeneralPreferenceFragment.java b/src/org/cyanogenmod/wallpapers/photophase/preferences/GeneralPreferenceFragment.java index b594db9..d7a0d1c 100644 --- a/src/org/cyanogenmod/wallpapers/photophase/preferences/GeneralPreferenceFragment.java +++ b/src/org/cyanogenmod/wallpapers/photophase/preferences/GeneralPreferenceFragment.java @@ -126,6 +126,9 @@ public class GeneralPreferenceFragment extends PreferenceFragment { mWallpaperDim = (SeekBarProgressPreference)findPreference("ui_wallpaper_dim"); mWallpaperDim.setFormat(formatDim); mWallpaperDim.setOnPreferenceChangeListener(mOnChangeListener); + // A excessive dim will just display a black screen. Restrict the max value to + // a proper translucent value + mWallpaperDim.setMax(70); mBackgroundColor = (ColorPickerPreference)findPreference("ui_background_color"); mBackgroundColor.setOnPreferenceChangeListener(mOnChangeListener); -- cgit v1.2.3