Fix power widget brightness.
If the auto-brightness is cleared, the brightness will drop to 0, so we need to set it again.
This commit is contained in:
@@ -397,6 +397,8 @@ public class SettingsAppWidgetProvider extends AppWidgetProvider {
|
||||
Settings.System.putInt(context.getContentResolver(),
|
||||
Settings.System.SCREEN_BRIGHTNESS_MODE,
|
||||
0);
|
||||
// Set it again in case auto brightness was on
|
||||
power.setBacklightBrightness(brightness);
|
||||
}
|
||||
}
|
||||
} catch (RemoteException e) {
|
||||
|
Reference in New Issue
Block a user