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

Commit 55bf3809 authored by Joe Onorato's avatar Joe Onorato
Browse files

Make TabletStatusBar call into StatusBarManagerService when it goes out of lights out mode on its

own.

Bug: 3241144
Change-Id: Id09437a4f32f1d64daa7ae65e41c99897b5964d7
parent 644f9c3a
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -391,8 +391,11 @@ public class TabletStatusBar extends StatusBar implements
            new View.OnTouchListener() {
                public boolean onTouch(View v, MotionEvent ev) {
                    if (ev.getAction() == MotionEvent.ACTION_DOWN) {
                        mShadow.setVisibility(View.GONE);
                        mBarContents.setVisibility(View.VISIBLE);
                        try {
                            mBarService.setSystemUiVisibility(View.STATUS_BAR_VISIBLE);
                        } catch (RemoteException ex) {
                            // system process dead
                        }
                    }
                    return false;
                }
+1 −9
Original line number Diff line number Diff line
@@ -283,16 +283,8 @@ public class StatusBarManagerService extends IStatusBarService.Stub
        }
    }

    /**
     * This is used for the user-controlled version of lights-out mode.  Only call this from
     * the status bar itself.
     *
     * We have two different functions here, because I think we're going to want to
     * tweak the behavior when the user keeps turning lights-out mode off and the
     * app keeps trying to turn it on.  For now they can just fight it out.  Having
     * these two separte inputs will allow us to keep that change local to here.  --joeo
     */
    public void setSystemUiVisibility(int vis) {
        // also allows calls from window manager which is in this process.
        enforceStatusBarService();

        synchronized (mLock) {