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

Commit f7ff0c87 authored by Bryan Eyler's avatar Bryan Eyler Committed by android-build-merger
Browse files

Merge "Cancel fullscreen countdown timer on interaction." into oc-mr1-dev

am: 12c586c5

Change-Id: I4edaadb77d9ea9e263894a710319a64bacffd8ef
parents 5b98a40d 12c586c5
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -74,6 +74,15 @@ public class FullscreenUserSwitcher {
            automaticallySelectUser();
        });

        // Any interaction with the screen should cancel the timer.
        mContainer.setOnClickListener(v -> {
            cancelTimer();
        });
        mUserGridView.setOnTouchListener((v, e) -> {
            cancelTimer();
            return false;
        });

        mSwitchingUsers = mParent.findViewById(R.id.switching_users);
    }

@@ -152,6 +161,7 @@ public class FullscreenUserSwitcher {
        if (mTimer != null) {
            mTimer.cancel();
            mTimer = null;
            mProgressBar.setProgress(0, true /* animate */);
        }
    }