Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 40dc8832 authored by Michael W's avatar Michael W
Browse files

LineageParts: Buttons: Remove split screen option

* It doesn't work at the moment, so don't offer it

Change-Id: I4640ff4f0a2a7440d1eab63240bc76ea2a76053a
parent a29884a2
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -21,7 +21,6 @@ import static android.view.WindowManagerPolicyConstants.NAV_BAR_MODE_2BUTTON;
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 @@ public class ButtonSettings extends SettingsPreferenceFragment
        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()) {
        // 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);