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

Commit 960779d3 authored by John Spurlock's avatar John Spurlock
Browse files

Dock: Renable desk-dock apps

Revert to pre-dreams behavior. DeskClock once again launches the correct
activity (instead of Screensaver) when desk-dock is attached.

Bug: 6559590
Change-Id: I32a03a25469f17b5e87e16831839ec757d56c90b
parent 48c22c84
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -59,7 +59,7 @@ public class DreamsDockLauncher extends Activity {
        public void onReceive(Context context, Intent intent) {
            final boolean activateOnDock = 0 != Settings.Secure.getInt(
                context.getContentResolver(),
                Settings.Secure.SCREENSAVER_ACTIVATE_ON_DOCK, 1);
                Settings.Secure.SCREENSAVER_ACTIVATE_ON_DOCK, 0);

            if (!activateOnDock) return;

+12 −12
Original line number Diff line number Diff line
@@ -65,7 +65,7 @@ class UiModeManagerService extends IUiModeManager.Stub {

    // Enable launching of applications when entering the dock.
    private static final boolean ENABLE_LAUNCH_CAR_DOCK_APP = true;
    private static final boolean ENABLE_LAUNCH_DESK_DOCK_APP = false;
    private static final boolean ENABLE_LAUNCH_DESK_DOCK_APP = true;

    private static final int MSG_UPDATE_TWILIGHT = 0;
    private static final int MSG_ENABLE_LOCATION_UPDATES = 1;