Removing extra binder call on state or visibility change
> fixing a bug where we do not match task events against managed user Bug: 78585335 Change-Id: I9183e81ea63f8ab51f45d5140301d281234caf2b
This commit is contained in:
1 parent
cf4f8c0c2e
commit
6b4b9b5d71
3 files changed
+39
-17
No files matched your search
@@ -15,6 +15,8 @@
|
||||
*/
|
||||
package com.android.quickstep;
|
||||
|
||||
import static com.android.quickstep.TaskUtils.checkCurrentOrManagedUserId;
|
||||
|
||||
import android.annotation.TargetApi;
|
||||
import android.app.ActivityManager;
|
||||
import android.content.ComponentCallbacks2;
|
||||
@@ -190,7 +192,7 @@ public class RecentsModel extends TaskStackChangeListener {
|
||||
@Override
|
||||
public void onTaskStackChangedBackground() {
|
||||
int userId = UserHandle.myUserId();
|
||||
if (!mPreloadTasksInBackground || !checkCurrentUserId(userId, false /* debug */)) {
|
||||
if (!mPreloadTasksInBackground || !checkCurrentOrManagedUserId(userId, mContext)) {
|
||||
// TODO: Only register this for the current user
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user