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

Commit b4302182 authored by Jason Monk's avatar Jason Monk
Browse files

Move shutdown UI to sysui (when possible)

Test: click restart or power off in global actions
Change-Id: I0dc30a9772bbfb3cd3c3568f157e854fef87bf87
Fixes: 63576195
Fixes: 64125291
parent 9f3bac52
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -115,4 +115,6 @@ oneway interface IStatusBar
    void remQsTile(in ComponentName tile);
    void clickQsTile(in ComponentName tile);
    void handleSystemKey(in int key);

    void showShutdownUi(boolean isReboot, String reason);
}
+3 −0
Original line number Diff line number Diff line
@@ -39,4 +39,7 @@

    <!-- Whether the device uses the default focus highlight when focus state isn't specified. -->
    <bool name="config_useDefaultFocusHighlight">false</bool>

    <!-- Allow SystemUI to show the shutdown dialog -->
    <bool name="config_showSysuiShutdown">false</bool>
</resources>
+3 −0
Original line number Diff line number Diff line
@@ -3000,4 +3000,7 @@

    <!-- Enable the RingtonePickerActivity in 'com.android.providers.media'. -->
    <bool name="config_defaultRingtonePickerEnabled">true</bool>

    <!-- Allow SystemUI to show the shutdown dialog -->
    <bool name="config_showSysuiShutdown">true</bool>
</resources>
+1 −0
Original line number Diff line number Diff line
@@ -3067,4 +3067,5 @@
  <java-symbol type="bool" name="config_showAreaUpdateInfoSettings" />
  <java-symbol type="layout" name="shutdown_dialog" />
  <java-symbol type="dimen" name="chooser_service_spacing" />
  <java-symbol type="bool" name="config_showSysuiShutdown" />
</resources>
+2 −0
Original line number Diff line number Diff line
@@ -26,6 +26,8 @@ public interface GlobalActions extends Plugin {
    int VERSION = 1;

    void showGlobalActions(GlobalActionsManager manager);
    default void showShutdownUi(boolean isReboot, String reason) {
    }

    @ProvidesInterface(version = GlobalActionsManager.VERSION)
    public interface GlobalActionsManager {
Loading