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

Commit 138f6fa4 authored by Jim Miller's avatar Jim Miller Committed by Android Git Automerger
Browse files

am 9a7e4ce7: Merge "Fix 5466678: use new setSystemUiVisibility() API to enable...

am 9a7e4ce7: Merge "Fix 5466678: use new setSystemUiVisibility() API to enable clock in statusbar" into ics-mr0

* commit '9a7e4ce7':
  Fix 5466678: use new setSystemUiVisibility() API to enable clock in statusbar
parents 08eaa9de 9a7e4ce7
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -71,7 +71,9 @@ public class StatusBarManager {
     */
    public void disable(int what) {
        try {
            if (mService != null) {
                mService.disable(what, mToken, mContext.getPackageName());
            }
        } catch (RemoteException ex) {
            // system process is dead anyway.
            throw new RuntimeException(ex);
+1 −0
Original line number Diff line number Diff line
@@ -524,6 +524,7 @@ public class KeyguardUpdateMonitor {
            callback.onRingerModeChanged(mRingMode);
            callback.onPhoneStateChanged(mPhoneState);
            callback.onRefreshCarrierInfo(mTelephonyPlmn, mTelephonySpn);
            callback.onClockVisibilityChanged();
        } else {
            if (DEBUG) Log.e(TAG, "Object tried to add another INFO callback",
                    new Exception("Whoops"));
+0 −1
Original line number Diff line number Diff line
@@ -178,7 +178,6 @@ public class KeyguardViewManager implements KeyguardWindowController {
        int visFlags =
                ( View.STATUS_BAR_DISABLE_BACK
                | View.STATUS_BAR_DISABLE_HOME
                | View.STATUS_BAR_DISABLE_CLOCK
                );
        mKeyguardHost.setSystemUiVisibility(visFlags);

+7 −1
Original line number Diff line number Diff line
@@ -709,8 +709,14 @@ public class LockPatternKeyguardView extends KeyguardViewBase implements Handler
    public void onRefreshCarrierInfo(CharSequence plmn, CharSequence spn) {}
    @Override
    public void onRingerModeChanged(int state) {}

    @Override
    public void onClockVisibilityChanged() {}
    public void onClockVisibilityChanged() {
        int visFlags = getSystemUiVisibility() & ~View.STATUS_BAR_DISABLE_CLOCK;
        setSystemUiVisibility(visFlags
                | (mUpdateMonitor.isClockVisible() ? View.STATUS_BAR_DISABLE_CLOCK : 0));
    }

    @Override
    public void onDeviceProvisioned() {}