Remove references to FEATURE_PC and related Desktop classes in Launcher
Also clean up TaskbarRecentAppsController APIs Flag: NA Test: DesktopTaskbarRunningAppsControllerTest Bug: 330551930 Change-Id: Ibd9c3d6aa1d5423b51a48ed0a972196752d5199a
This commit is contained in:
@@ -17,9 +17,8 @@ package com.android.launcher3.taskbar;
|
||||
|
||||
import static java.util.Collections.emptySet;
|
||||
|
||||
import android.util.SparseArray;
|
||||
|
||||
import androidx.annotation.CallSuper;
|
||||
import androidx.annotation.NonNull;
|
||||
|
||||
import com.android.launcher3.model.data.AppInfo;
|
||||
import com.android.launcher3.model.data.ItemInfo;
|
||||
@@ -59,13 +58,12 @@ public class TaskbarRecentAppsController {
|
||||
}
|
||||
|
||||
/** Called to update hotseatItems, no-op except in desktop environment. */
|
||||
protected ItemInfo[] updateHotseatItemInfos(ItemInfo[] hotseatItems) {
|
||||
protected ItemInfo[] updateHotseatItemInfos(@NonNull ItemInfo[] hotseatItems) {
|
||||
return hotseatItems;
|
||||
}
|
||||
|
||||
/** Called to update the list of currently running apps, no-op except in desktop environment. */
|
||||
protected void updateRunningApps(SparseArray<ItemInfo> hotseatItems) {
|
||||
}
|
||||
protected void updateRunningApps() {}
|
||||
|
||||
/** Returns the currently running apps, or an empty Set if outside of Desktop environment. */
|
||||
public Set<String> getRunningApps() {
|
||||
|
||||
Reference in New Issue
Block a user