OSDN Git Service

Restore softkey illumination control.
authorDaniel Sandler <dsandler@google.com>
Fri, 15 Jan 2010 18:06:32 +0000 (13:06 -0500)
committerDaniel Sandler <dsandler@google.com>
Fri, 15 Jan 2010 18:06:32 +0000 (13:06 -0500)
Introduced in change I35b0967
but accidentally reverted in change Ic98ba511.

src/com/android/deskclock/DeskClock.java

index 66fb1ba..a66613c 100644 (file)
@@ -529,6 +529,7 @@ public class DeskClock extends Activity {
         if (mDimmed) {
             winParams.flags |= WindowManager.LayoutParams.FLAG_FULLSCREEN;
             winParams.dimAmount = DIM_BEHIND_AMOUNT_DIMMED;
+            winParams.buttonBrightness = WindowManager.LayoutParams.BRIGHTNESS_OVERRIDE_OFF;
 
             // show the window tint
             tintView.startAnimation(AnimationUtils.loadAnimation(this,
@@ -537,6 +538,7 @@ public class DeskClock extends Activity {
         } else {
             winParams.flags &= (~WindowManager.LayoutParams.FLAG_FULLSCREEN);
             winParams.dimAmount = DIM_BEHIND_AMOUNT_NORMAL;
+            winParams.buttonBrightness = WindowManager.LayoutParams.BRIGHTNESS_OVERRIDE_NONE;
 
             // hide the window tint
             tintView.startAnimation(AnimationUtils.loadAnimation(this,