Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 31504f0b authored by Android (Google) Code Review's avatar Android (Google) Code Review
Browse files

Merge change 24847 into eclair

* changes:
  PowerManagerService: Fix keyboard backlight support:
parents 298d32e1 a625b38c
Loading
Loading
Loading
Loading
+12 −2
Original line number Diff line number Diff line
@@ -1848,7 +1848,17 @@ class PowerManagerService extends IPowerManager.Stub
    }
    
    public void setKeyboardVisibility(boolean visible) {
        synchronized (mLocks) {
            if (mSpew) {
                Log.d(TAG, "setKeyboardVisibility: " + visible);
            }
            mKeyboardVisible = visible;
            // don't signal user activity when closing keyboard if the screen is off.
            // otherwise, we want to make sure the backlights are adjusted.
            if (visible || (mPowerState & SCREEN_ON_BIT) != 0) {
                userActivity(SystemClock.uptimeMillis(), false, BUTTON_EVENT, true);
            }
        }
    }

    /**