mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 03:08:19 +00:00
Merge "Use empty intent instead of null when creating stub TaskKey" into sc-v2-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
2d9ac4e67f
@@ -24,6 +24,7 @@ import android.annotation.TargetApi;
|
||||
import android.app.ActivityManager;
|
||||
import android.content.ComponentCallbacks2;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.os.Build;
|
||||
import android.os.Process;
|
||||
import android.os.UserHandle;
|
||||
@@ -176,7 +177,7 @@ public class RecentsModel extends TaskStackChangeListener implements IconChangeL
|
||||
|
||||
@Override
|
||||
public void onTaskRemoved(int taskId) {
|
||||
Task.TaskKey stubKey = new Task.TaskKey(taskId, 0, null, null, 0, 0);
|
||||
Task.TaskKey stubKey = new Task.TaskKey(taskId, 0, new Intent(), null, 0, 0);
|
||||
mThumbnailCache.remove(stubKey);
|
||||
mIconCache.onTaskRemoved(stubKey);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user