mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-02-25 10:58:50 +01:00
Fix setting brightness with negative value
This commit is contained in:
parent
5c60c80b9e
commit
8d255b9238
1 changed files with 1 additions and 1 deletions
|
@ -648,7 +648,7 @@ class _ViewerBrightnessController implements Disposable {
|
||||||
@override
|
@override
|
||||||
init(State state) {
|
init(State state) {
|
||||||
final brightness = Pref.inst().getViewerScreenBrightness();
|
final brightness = Pref.inst().getViewerScreenBrightness();
|
||||||
if (brightness != null) {
|
if (brightness != null && brightness >= 0) {
|
||||||
ScreenBrightness.setScreenBrightness(brightness / 100.0);
|
ScreenBrightness.setScreenBrightness(brightness / 100.0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue