mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-21 19:55:33 -04:00
universal7885: SamsungParts: Set min silder value to 1
* Our custom brightness driver divides the sysfs value by 21. Value 0 means nothing. So nothing changes Change-Id: I672579fb146036c0baf2d643da8e34e5d96671ee Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
This commit is contained in:
parent
18b1dbd893
commit
91cae9cc95
1 changed files with 1 additions and 1 deletions
|
|
@ -43,7 +43,7 @@ public class FlashLightFragment extends PreferenceFragment implements
|
|||
mFlashLightPref.setEnabled(false);
|
||||
}
|
||||
mFlashLightPref.setMax(10);
|
||||
mFlashLightPref.setMin(0);
|
||||
mFlashLightPref.setMin(1);
|
||||
boolean isa10 = SystemProperties.read("ro.product.device").equals("a10");
|
||||
mFlashLightPref.setValue(Flashlight.getFlash(isa10 ? 1 : 0));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue