mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 18:58:19 +00:00
Retiring some feature flags
Change-Id: I80a00ecaec0785ce2ba6a5f14a54c8a76f555d43
This commit is contained in:
@@ -24,7 +24,6 @@ import android.content.Intent.ShortcutIconResource;
|
||||
import android.content.pm.LauncherActivityInfo;
|
||||
import android.database.Cursor;
|
||||
import android.database.CursorWrapper;
|
||||
import android.graphics.Bitmap;
|
||||
import android.graphics.BitmapFactory;
|
||||
import android.os.UserHandle;
|
||||
import android.provider.BaseColumns;
|
||||
@@ -387,15 +386,6 @@ public class LoaderCursor extends CursorWrapper {
|
||||
protected boolean checkItemPlacement(ItemInfo item, ArrayList<Long> workspaceScreens) {
|
||||
long containerIndex = item.screenId;
|
||||
if (item.container == LauncherSettings.Favorites.CONTAINER_HOTSEAT) {
|
||||
// Return early if we detect that an item is under the hotseat button
|
||||
if (!FeatureFlags.NO_ALL_APPS_ICON &&
|
||||
mIDP.isAllAppsButtonRank((int) item.screenId)) {
|
||||
Log.e(TAG, "Error loading shortcut into hotseat " + item
|
||||
+ " into position (" + item.screenId + ":" + item.cellX + ","
|
||||
+ item.cellY + ") occupied by all apps");
|
||||
return false;
|
||||
}
|
||||
|
||||
final GridOccupancy hotseatOccupancy =
|
||||
occupied.get((long) LauncherSettings.Favorites.CONTAINER_HOTSEAT);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user