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

Commit 61b6ca4a authored by burakov's avatar burakov
Browse files

[Dual Shade] Settings page for switching between Dual & Single shades.

It is available under:
 Settings > Notifications > Notifications & Quick Settings.

Bug: 410541004
Bug: 409228328
Test: Added unit tests.
Test: Tested manually by opening the setting in the Settings app,
 changing the setting, and observing that the dual shade was correctly
 enabled and disabled.
Flag: com.android.systemui.scene_container
Change-Id: If8273885ac43ce527f86812ca055f0b86981cbc6
parent 55453ac8
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
@@ -1142,6 +1142,22 @@
                android:value="true"/>
        </activity>

        <activity
            android:name=".Settings$ShadeSettingsActivity"
            android:label="@string/shade_panels_title"
            android:exported="true">
            <intent-filter>
                <action android:name="com.android.settings.SHADE_SETTINGS"/>
                <category android:name="android.intent.category.DEFAULT"/>
            </intent-filter>
            <meta-data android:name="com.android.settings.FRAGMENT_CLASS"
                android:value="com.android.settings.system.ShadePanelsFragment"/>
            <meta-data android:name="com.android.settings.HIGHLIGHT_MENU_KEY"
                android:value="@string/menu_key_notifications"/>
            <meta-data android:name="com.android.settings.PRIMARY_PROFILE_CONTROLLED"
                android:value="true"/>
        </activity>

        <activity
            android:name=".Settings$RegionSettingsActivity"
            android:label="@string/region_picker_preference_title"
+19 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2025 The Android Open Source Project

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
    <!-- Summary text for the separate panels mode. In this mode, notifications and Quick Settings are shown in separate panels, each opened by swiping down on a different side of the top edge of the screen. [CHAR_LIMIT=250] -->
    <string name="shade_panels_separate_summary">Swipe down from the top left to open Quick Settings. Swipe down from the top right to open notifications.</string>
</resources>
+24 −0
Original line number Diff line number Diff line
@@ -11685,6 +11685,30 @@ Data usage charges may apply.</string>
    <!-- Summary text for swipe up to switch apps  [CHAR LIMIT=250] -->
    <string name="swipe_up_to_switch_apps_summary">To switch apps, swipe up on the Home button. To see all apps, swipe up again. To go back, tap the back button.</string>
    <!-- Title text for system panels showing notifications and quick settings [CHAR LIMIT=60] -->
    <string name="shade_panels_title">Notifications &amp; Quick Settings</string>
    <!-- Search keywords for system panels settings. [CHAR_LIMIT=NONE]-->
    <string name="keywords_shade_panels">shade, panels, notifications, quick settings, qs, separate, combined, dual, single</string>
    <!-- Category for system panels showing notifications and Quick Settings. [CHAR LIMIT=NONE]-->
    <string name="shade_panels_category">Panels</string>
    <!-- Title text for the separate panels mode. In this mode, notifications and Quick Settings are shown in separate panels, each opened by swiping down on a different side of the top edge of the screen. [CHAR_LIMIT=60] -->
    <string name="shade_panels_separate_title">Separate</string>
    <!-- Summary text for the separate panels mode. In this mode, notifications and Quick Settings are shown in separate panels, each opened by swiping down on a different side of the top edge of the screen. [CHAR_LIMIT=250] -->
    <string name="shade_panels_separate_summary">Swipe down from the top right to open Quick Settings. Swipe down from the top left to open notifications.</string>
    <!-- Title text for the combined panels mode. In this mode, notifications and Quick Settings are shown a single panel, opened by swiping down from the top edge of the screen. In the past this used to be the only mode, so it is also referred to as "classic" mode. [CHAR_LIMIT=60] -->
    <string name="shade_panels_combined_title">Combined (classic)</string>
    <!-- Summary text for the combined panels mode. In this mode, notifications and Quick Settings are shown a single panel, opened by swiping down from the top edge of the screen. In the past this used to be the only mode, so it is also referred to as "classic" mode. [CHAR_LIMIT=NONE] -->
    <string name="shade_panels_combined_summary">Swipe down from the top of your screen to access the classic panel that combines notifications and Quick Settings.</string>
    <!-- Informational message shown to users of foldable devices, explaining that the combined shade view is only available on the outer (narrow) screen of their device. [CHAR LIMIT=200]-->
    <string name="shade_panels_foldables_footer_message">Combined (classic) view is limited to the outer screen of your foldable device</string>
    <!-- Preference title for "Safety & emergency" settings page [CHAR LIMIT=60]-->
    <string name="emergency_settings_preference_title">Safety &amp; emergency</string>
+12 −5
Original line number Diff line number Diff line
@@ -195,35 +195,42 @@
                android:targetClass="com.android.cellbroadcastreceiver.CellBroadcastSettings"/>
        </com.android.settingslib.RestrictedPreference>

        <Preference
            android:key="shade_panels_settings"
            android:title="@string/shade_panels_title"
            android:order="24"
            android:fragment="com.android.settings.system.ShadePanelsFragment"
            settings:controller="com.android.settings.system.ShadePanelsPreferenceController"/>

        <SwitchPreferenceCompat
             android:key="silent_icons"
             android:order="24"
             android:order="25"
             android:title="@string/silent_notifications_status_bar"
             settings:controller="com.android.settings.notification.SilentStatusBarPreferenceController"/>

        <SwitchPreferenceCompat
            android:key="show_snooze_options"
            android:order="25"
            android:order="26"
            android:title="@string/snooze_options_title"
            settings:controller="com.android.settings.notification.SnoozeNotificationPreferenceController" />

        <!-- Notification badging -->
        <SwitchPreferenceCompat
            android:key="notification_badging"
            android:order="26"
            android:order="27"
            android:title="@string/notification_badging_title"
            settings:controller="com.android.settings.notification.BadgingNotificationPreferenceController"/>

        <!-- Pulse notification light, on devices that support it -->
        <SwitchPreferenceCompat
            android:key="notification_pulse"
            android:order="27"
            android:order="28"
            android:title="@string/notification_pulse_title"
            settings:controller="com.android.settings.notification.PulseNotificationPreferenceController"/>

        <SwitchPreferenceCompat
            android:key="notification_assistant"
            android:order="28"
            android:order="29"
            android:title="@string/notification_assistant_title"
            android:summary="@string/notification_assistant_summary"
            settings:controller="com.android.settings.notification.NotificationAssistantPreferenceController"/>
+22 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
  Copyright (C) 2025 The Android Open Source Project

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
  -->

<PreferenceScreen
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:settings="http://schemas.android.com/apk/res-auto"
    android:title="@string/shade_panels_title"
    settings:keywords="@string/keywords_shade_panels"/>
Loading