Loading packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java +4 −0 Original line number Diff line number Diff line Loading @@ -182,6 +182,9 @@ public class RecentsActivity extends Activity implements ViewTreeObserver.OnPreD if (action.equals(Intent.ACTION_SCREEN_OFF)) { // When the screen turns off, dismiss Recents to Home dismissRecentsToHomeIfVisible(false); } else if (action.equals(Intent.ACTION_USER_SWITCHED)) { // When switching users, dismiss Recents to Home similar to screen off finish(); } else if (action.equals(Intent.ACTION_TIME_CHANGED)) { // If the time shifts but the currentTime >= lastStackActiveTime, then that boundary // is still valid. Otherwise, we need to reset the lastStackactiveTime to the Loading Loading @@ -375,6 +378,7 @@ public class RecentsActivity extends Activity implements ViewTreeObserver.OnPreD IntentFilter filter = new IntentFilter(); filter.addAction(Intent.ACTION_SCREEN_OFF); filter.addAction(Intent.ACTION_TIME_CHANGED); filter.addAction(Intent.ACTION_USER_SWITCHED); registerReceiver(mSystemBroadcastReceiver, filter); getWindow().addPrivateFlags(LayoutParams.PRIVATE_FLAG_NO_MOVE_ANIMATION); Loading Loading
packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java +4 −0 Original line number Diff line number Diff line Loading @@ -182,6 +182,9 @@ public class RecentsActivity extends Activity implements ViewTreeObserver.OnPreD if (action.equals(Intent.ACTION_SCREEN_OFF)) { // When the screen turns off, dismiss Recents to Home dismissRecentsToHomeIfVisible(false); } else if (action.equals(Intent.ACTION_USER_SWITCHED)) { // When switching users, dismiss Recents to Home similar to screen off finish(); } else if (action.equals(Intent.ACTION_TIME_CHANGED)) { // If the time shifts but the currentTime >= lastStackActiveTime, then that boundary // is still valid. Otherwise, we need to reset the lastStackactiveTime to the Loading Loading @@ -375,6 +378,7 @@ public class RecentsActivity extends Activity implements ViewTreeObserver.OnPreD IntentFilter filter = new IntentFilter(); filter.addAction(Intent.ACTION_SCREEN_OFF); filter.addAction(Intent.ACTION_TIME_CHANGED); filter.addAction(Intent.ACTION_USER_SWITCHED); registerReceiver(mSystemBroadcastReceiver, filter); getWindow().addPrivateFlags(LayoutParams.PRIVATE_FLAG_NO_MOVE_ANIMATION); Loading