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

Commit d740ea97 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add additional logs for swipe after unlock" into ub-launcher3-rvc-dev

parents 8f40d00a 31680773
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -539,6 +539,8 @@ public class TouchInteractionService extends Service implements PluginListener<O
        boolean canStartSystemGesture = mDeviceState.canStartSystemGesture();
        boolean canStartSystemGesture = mDeviceState.canStartSystemGesture();


        if (!mDeviceState.isUserUnlocked()) {
        if (!mDeviceState.isUserUnlocked()) {
            Log.d(TAG, "User locked. Can start system gesture? " + canStartSystemGesture
                + " sysUiFlags: " + mDeviceState.getSystemUiStateFlags());
            if (canStartSystemGesture) {
            if (canStartSystemGesture) {
                // This handles apps launched in direct boot mode (e.g. dialer) as well as apps
                // This handles apps launched in direct boot mode (e.g. dialer) as well as apps
                // launched while device is locked even after exiting direct boot mode (e.g. camera).
                // launched while device is locked even after exiting direct boot mode (e.g. camera).
+3 −0
Original line number Original line Diff line number Diff line
@@ -74,6 +74,8 @@ public class RecentsAnimationDeviceState implements
        NavigationModeChangeListener,
        NavigationModeChangeListener,
        DefaultDisplay.DisplayInfoChangeListener {
        DefaultDisplay.DisplayInfoChangeListener {


    private static final String TAG = "RecentsAnimationDeviceState";

    private final Context mContext;
    private final Context mContext;
    private final SysUINavigationMode mSysUiNavMode;
    private final SysUINavigationMode mSysUiNavMode;
    private final DefaultDisplay mDefaultDisplay;
    private final DefaultDisplay mDefaultDisplay;
@@ -96,6 +98,7 @@ public class RecentsAnimationDeviceState implements
        @Override
        @Override
        public void onReceive(Context context, Intent intent) {
        public void onReceive(Context context, Intent intent) {
            if (ACTION_USER_UNLOCKED.equals(intent.getAction())) {
            if (ACTION_USER_UNLOCKED.equals(intent.getAction())) {
                Log.d(TAG, "User Unlocked Broadcast Received");
                mIsUserUnlocked = true;
                mIsUserUnlocked = true;
                notifyUserUnlocked();
                notifyUserUnlocked();
            }
            }