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 am: 2d9ac4e67f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16307200 Change-Id: I58ee7c72effc3445abc104e2d863df0235516cf9
This commit is contained in:
@@ -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