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

Commit 96268545 authored by Tim Kilbourn's avatar Tim Kilbourn
Browse files

Add a config for whether to start in touch mode.

Bug: 18925810
Change-Id: Ic9b956cde380cffcad7ca229f1669692b1743e6d
parent be3731f0
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2021,4 +2021,7 @@

    <!-- Use ERI text for network name on CDMA LTE -->
    <bool name="config_LTE_eri_for_network_name">true</bool>

    <!-- Whether to start in touch mode -->
    <bool name="config_defaultInTouchMode">true</bool>
</resources>
+1 −0
Original line number Diff line number Diff line
@@ -2155,4 +2155,5 @@

  <java-symbol type="bool" name="config_use_sim_language_file" />
  <java-symbol type="bool" name="config_LTE_eri_for_network_name" />
  <java-symbol type="bool" name="config_defaultInTouchMode" />
</resources>
+3 −1
Original line number Diff line number Diff line
@@ -764,7 +764,7 @@ public class WindowManagerService extends IWindowManager.Stub
     * Whether the UI is currently running in touch mode (not showing
     * navigational focus because the user is directly pressing the screen).
     */
    boolean mInTouchMode = true;
    boolean mInTouchMode;

    private ViewServer mViewServer;
    private final ArrayList<WindowChangeListener> mWindowChangeListeners =
@@ -825,6 +825,8 @@ public class WindowManagerService extends IWindowManager.Stub
                com.android.internal.R.bool.config_sf_limitedAlpha);
        mHasPermanentDpad = context.getResources().getBoolean(
                com.android.internal.R.bool.config_hasPermanentDpad);
        mInTouchMode = context.getResources().getBoolean(
                com.android.internal.R.bool.config_defaultInTouchMode);
        mInputManager = inputManager; // Must be before createDisplayContentLocked.
        mDisplayManagerInternal = LocalServices.getService(DisplayManagerInternal.class);
        mDisplaySettings = new DisplaySettings();