mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 00:06:47 +00:00
Retiring some feature flags
Change-Id: I80a00ecaec0785ce2ba6a5f14a54c8a76f555d43
This commit is contained in:
@@ -28,7 +28,6 @@ import android.util.Xml;
|
||||
import android.view.Display;
|
||||
import android.view.WindowManager;
|
||||
|
||||
import com.android.launcher3.config.FeatureFlags;
|
||||
import com.android.launcher3.util.ConfigMonitor;
|
||||
import com.android.launcher3.util.MainThreadInitializedObject;
|
||||
import com.android.launcher3.util.Thunk;
|
||||
@@ -314,17 +313,6 @@ public class InvariantDeviceProfile {
|
||||
return this;
|
||||
}
|
||||
|
||||
public int getAllAppsButtonRank() {
|
||||
if (FeatureFlags.IS_DOGFOOD_BUILD && FeatureFlags.NO_ALL_APPS_ICON) {
|
||||
throw new IllegalAccessError("Accessing all apps rank when all-apps is disabled");
|
||||
}
|
||||
return numHotseatIcons / 2;
|
||||
}
|
||||
|
||||
public boolean isAllAppsButtonRank(int rank) {
|
||||
return rank == getAllAppsButtonRank();
|
||||
}
|
||||
|
||||
public DeviceProfile getDeviceProfile(Context context) {
|
||||
return context.getResources().getConfiguration().orientation
|
||||
== Configuration.ORIENTATION_LANDSCAPE ? landscapeProfile : portraitProfile;
|
||||
|
||||
Reference in New Issue
Block a user