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:
Soo-Hwan Na 2021-11-04 13:26:51 +09:00 committed by roynatech2544
commit 91cae9cc95
No known key found for this signature in database
GPG key ID: 9675C32163D88D30

View file

@ -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));
}