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

Commit 32fa736d authored by Mady Mellor's avatar Mady Mellor
Browse files

Move feature-level Bubble setting into developer options; default to off

Functionality:
* Moves feature-level setting into developer settings (apps section)
* Adds bubbles in developer options under "apps" section
* Configures the app-specific bubble toggle in notifications settings
  to be hidden / shown based on the developer setting
* Configures the channel-specific bubble toggle in notification channel
  settings to be hidden / shown based on the developer setting

Tests:
* Anything that might be assuming that it's globally enabled now has
  a bit to enable it globally in that test
* There is a logic change now where the app-level setting would be available
  even if off globally, now that is not true -- if it's off globally the
  app-level is no longer available
* Adds tests for the developer setting

Test: make -j40 RunSettingsRoboTests ROBOTEST_FILTER="Bubble"
Bug: 131845765
Change-Id: I5f6bf74e5ada3fc023571825cca10d7bddc60e6e
parent d204d6c3
Loading
Loading
Loading
Loading

res/raw/bubbles.mp4

deleted100644 → 0
−654 KiB

File deleted.

+2 −2
Original line number Diff line number Diff line
@@ -7891,8 +7891,8 @@
    <!-- Configure Notifications: Title for the notification bubbles option. [CHAR LIMIT=60] -->
    <string name="notification_bubbles_title">Bubbles</string>
    <!-- Configure Notifications: Summary for the notification bubbles option. [CHAR LIMIT=NONE] -->
    <string name="notification_bubbles_summary">Quickly access app content from anywhere using floating shortcuts</string>
    <!-- Developer setting summary for bubbles [CHAR LIMIT=NONE] -->
    <string name="notification_bubbles_developer_setting_summary">Some notifications can appear as bubbles on the screen</string>
    <!-- Feature education for bubbles. [CHAR LIMIT=NONE] -->
    <string name="bubbles_feature_education">Some notifications and other content can appear as bubbles on the screen. To open a bubble, tap it. To dismiss it, drag it down the screen.</string>
    <!-- Title for the toggle shown on the app-level bubbles page  [CHAR LIMIT=60] -->
+0 −41
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2019 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/bubbles_app_toggle_title"
                  android:key="bubble_notification_settings">

        <com.android.settings.widget.VideoPreference
            android:key="bubbles_illustration"
            android:title="@string/summary_placeholder"
            settings:animation="@raw/bubbles"
            settings:controller="com.android.settings.widget.VideoPreferenceController"
            android:persistent="false" />

        <!-- Notification bubbles -->
        <SwitchPreference
            android:key="global_notification_bubbles"
            android:title="@string/notification_bubbles_title"
            android:summary="@string/notification_bubbles_summary"
            settings:controller="com.android.settings.notification.BubbleNotificationPreferenceController"/>

        <com.android.settingslib.widget.FooterPreference
            android:key="notification_bubbles_footer"
            android:title="@string/bubbles_feature_education"
            android:selectable="false" />

</PreferenceScreen>
+0 −7
Original line number Diff line number Diff line
@@ -74,13 +74,6 @@
            android:title="@string/notification_badging_title"
            settings:controller="com.android.settings.notification.BadgingNotificationPreferenceController"/>

        <!-- Notification bubbles -->
        <Preference
            android:key="notification_bubbles"
            android:title="@string/notification_bubbles_title"
            settings:controller="com.android.settings.notification.BubbleSummaryNotificationPreferenceController"
            android:fragment="com.android.settings.notification.BubbleNotificationSettings"/>

        <!-- Pulse notification light -->
        <SwitchPreference
            android:key="notification_pulse"
+6 −0
Original line number Diff line number Diff line
@@ -560,6 +560,12 @@
            android:key="device_identifier_access_restrictions"
            android:title="@string/device_identifier_access_restrictions_title"
            android:summary="@string/device_identifier_access_restrictions_summary" />

        <SwitchPreference
            android:key="notification_bubbles"
            android:title="@string/notification_bubbles_title"
            android:summary="@string/notification_bubbles_developer_setting_summary"/>

    </PreferenceCategory>

    <com.android.settings.development.autofill.AutofillPreferenceCategory
Loading