Commit fad767ac authored by Geoffrey Métais's avatar Geoffrey Métais

Permission request for brightness seems useless

parent 9ace9c3f
......@@ -2185,10 +2185,6 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
// Initialize the layoutParams screen brightness
try {
if (Settings.System.getInt(getContentResolver(), Settings.System.SCREEN_BRIGHTNESS_MODE) == Settings.System.SCREEN_BRIGHTNESS_MODE_AUTOMATIC) {
if (!Permissions.canWriteSettings(this)) {
Permissions.checkWriteSettingsPermission(this, Permissions.PERMISSION_SYSTEM_BRIGHTNESS);
return;
}
Settings.System.putInt(getContentResolver(),
Settings.System.SCREEN_BRIGHTNESS_MODE,
Settings.System.SCREEN_BRIGHTNESS_MODE_MANUAL);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment