LineageParts: Buttons: Remove split screen option
* It doesn't work at the moment, so don't offer it
Change-Id: I4640ff4f0a2a7440d1eab63240bc76ea2a76053a
diff --git a/src/org/lineageos/lineageparts/input/ButtonSettings.java b/src/org/lineageos/lineageparts/input/ButtonSettings.java
index ee6fa6c..a6fa54f 100644
--- a/src/org/lineageos/lineageparts/input/ButtonSettings.java
+++ b/src/org/lineageos/lineageparts/input/ButtonSettings.java
@@ -21,7 +21,6 @@
import static android.view.WindowManagerPolicyConstants.NAV_BAR_MODE_3BUTTON_OVERLAY;
import static android.view.WindowManagerPolicyConstants.NAV_BAR_MODE_GESTURAL_OVERLAY;
-import android.app.ActivityManager;
import android.content.ContentResolver;
import android.content.Context;
import android.content.om.IOverlayManager;
@@ -493,10 +492,10 @@
List<String> values = new ArrayList<>(
Arrays.asList(res.getStringArray(R.array.hardware_keys_action_values)));
- // Override key actions on Go devices in order to hide any unsupported features
- if (ActivityManager.isLowRamDeviceStatic()) {
- unsupportedValues.add(Action.SPLIT_SCREEN.ordinal());
- }
+ // hide split screen option unconditionally - it doesn't work at the moment
+ // once someone gets it working again: hide it only for low-ram devices
+ // (check ActivityManager.isLowRamDeviceStatic())
+ unsupportedValues.add(Action.SPLIT_SCREEN.ordinal());
for (int unsupportedValue: unsupportedValues) {
entries.remove(unsupportedValue);