summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/panorama
diff options
context:
space:
mode:
authorWei-Ta Chen <weita@google.com>2011-09-16 17:58:19 -0700
committerWei-Ta Chen <weita@google.com>2011-09-16 17:58:19 -0700
commita959d05b52ac4b27dcdfe3d3a4e72220cf69d47a (patch)
tree5cf65d59a722299de31d36208411be8b982647d3 /src/com/android/camera/panorama
parent6c5b20113ba9f91352f32e5a53df66aec0ec761a (diff)
downloadLegacyCamera-a959d05b52ac4b27dcdfe3d3a4e72220cf69d47a.zip
LegacyCamera-a959d05b52ac4b27dcdfe3d3a4e72220cf69d47a.tar.gz
LegacyCamera-a959d05b52ac4b27dcdfe3d3a4e72220cf69d47a.tar.bz2
Adjust the screen brightness in the panorama mode.
Adjust the screen brightness in the case of automatic brightness. Make the screen brightness in the panorama mode consistent with that in the Camera mode and VideoCamera mode. Change-Id: I1600bcabcdf0d5f3840a347cce10c329d2db100b
Diffstat (limited to 'src/com/android/camera/panorama')
-rw-r--r--src/com/android/camera/panorama/PanoramaActivity.java7
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 00613c7..397e706 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;
@@ -207,9 +208,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();