[Android] Get system brightness value only if needed
Geoffrey Métais
git at videolan.org
Fri Nov 13 16:32:09 CET 2015
vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Nov 13 16:31:04 2015 +0100| [4923665f725d8bfaed8a96e2c200b695c8447f81] | committer: Geoffrey Métais
Get system brightness value only if needed
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=4923665f725d8bfaed8a96e2c200b695c8447f81
---
vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
index c75e2b5..2d565f5 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -1931,7 +1931,7 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
Settings.System.SCREEN_BRIGHTNESS_MODE_MANUAL);
mRestoreAutoBrightness = android.provider.Settings.System.getInt(getContentResolver(),
android.provider.Settings.System.SCREEN_BRIGHTNESS) / 255.0f;
- } else {
+ } else if (brightnesstemp == 0.6f) {
brightnesstemp = android.provider.Settings.System.getInt(getContentResolver(),
android.provider.Settings.System.SCREEN_BRIGHTNESS) / 255.0f;
}
More information about the Android
mailing list