diff options
Diffstat (limited to 'src/com/android/camera/panorama/PanoramaActivity.java')
-rw-r--r-- | src/com/android/camera/panorama/PanoramaActivity.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/com/android/camera/panorama/PanoramaActivity.java b/src/com/android/camera/panorama/PanoramaActivity.java index d459740..2bb9f6c 100644 --- a/src/com/android/camera/panorama/PanoramaActivity.java +++ b/src/com/android/camera/panorama/PanoramaActivity.java @@ -62,6 +62,7 @@ import android.util.Log; import android.view.Gravity; import android.view.OrientationEventListener; import android.view.View; +import android.view.Window; import android.view.WindowManager; import android.view.animation.LinearInterpolator; import android.widget.ImageView; @@ -211,9 +212,11 @@ public class PanoramaActivity extends Activity implements public void onCreate(Bundle icicle) { super.onCreate(icicle); - getWindow().setFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON, + Window window = getWindow(); + window.setFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON, WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); - Util.enterLightsOutMode(getWindow()); + Util.enterLightsOutMode(window); + Util.initializeScreenBrightness(window, getContentResolver()); createContentView(); |