mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 09:56:49 +00:00
Remove @WorkerThread annotation and Preconditions.assertWorkerThread check.
`BaseLauncherBinder.bindAllApps` and `BaseModelUpdateTask.bindApplicationsIfNeeded` can be called on both UI and Background thread. Bug: 285711446 Test: Manual Flags: NA Change-Id: If6f6cce5f6e37fb21609aded8587afbdffda7545
This commit is contained in:
@@ -23,8 +23,6 @@ import static com.android.launcher3.util.Executors.MODEL_EXECUTOR;
|
||||
import android.os.Process;
|
||||
import android.util.Log;
|
||||
|
||||
import androidx.annotation.WorkerThread;
|
||||
|
||||
import com.android.launcher3.InvariantDeviceProfile;
|
||||
import com.android.launcher3.LauncherAppState;
|
||||
import com.android.launcher3.LauncherModel.CallbackTask;
|
||||
@@ -41,7 +39,6 @@ import com.android.launcher3.util.IntSet;
|
||||
import com.android.launcher3.util.LooperExecutor;
|
||||
import com.android.launcher3.util.LooperIdleLock;
|
||||
import com.android.launcher3.util.PackageUserKey;
|
||||
import com.android.launcher3.util.Preconditions;
|
||||
import com.android.launcher3.util.RunnableList;
|
||||
|
||||
import java.util.ArrayList;
|
||||
@@ -149,9 +146,7 @@ public abstract class BaseLauncherBinder {
|
||||
/**
|
||||
* Binds the all apps results from LoaderTask to the callbacks UX.
|
||||
*/
|
||||
@WorkerThread
|
||||
public void bindAllApps() {
|
||||
Preconditions.assertWorkerThread();
|
||||
// shallow copy
|
||||
AppInfo[] apps = mBgAllAppsList.copyData();
|
||||
int flags = mBgAllAppsList.getFlags();
|
||||
|
||||
Reference in New Issue
Block a user