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

Commit 31680773 authored by Vinit Nayak's avatar Vinit Nayak
Browse files

Add additional logs for swipe after unlock

Bug: 146964271
Change-Id: I2eaff8deb52f5e79ffffff0e3dae1d45a2cba7cb
parent f84b31aa
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();
            }
            }