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

Commit 4a58ec22 authored by Ned Burns's avatar Ned Burns Committed by Android (Google) Code Review
Browse files

Merge "Revert to basic icons in notification info." into qt-dev

parents ab9c69fd 0ed02298
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -228,7 +228,7 @@ asked for it -->
                android:focusable="true">
                <ImageView
                    android:id="@+id/alert_icon"
                    android:src="@drawable/ic_notification_interruptive"
                    android:src="@drawable/ic_notifications_alert"
                    android:background="@android:color/transparent"
                    android:layout_gravity="center"
                    android:layout_width="wrap_content"
@@ -249,6 +249,7 @@ asked for it -->
                    android:text="@string/notification_alert_title"/>
                <TextView
                    android:id="@+id/alert_summary"
                    android:visibility="gone"
                    android:paddingTop="@dimen/notification_importance_button_padding"
                    android:text="@string/notification_channel_summary_default"
                    android:layout_width="match_parent"
@@ -271,7 +272,7 @@ asked for it -->
                android:focusable="true">
                <ImageView
                    android:id="@+id/silence_icon"
                    android:src="@drawable/ic_notification_gentle"
                    android:src="@drawable/ic_notifications_silence"
                    android:background="@android:color/transparent"
                    android:layout_gravity="center"
                    android:layout_width="wrap_content"
@@ -292,6 +293,7 @@ asked for it -->
                    android:text="@string/notification_silence_title"/>
                <TextView
                    android:id="@+id/silence_summary"
                    android:visibility="gone"
                    android:paddingTop="@dimen/notification_importance_button_padding"
                    android:text="@string/notification_channel_summary_default"
                    android:layout_width="match_parent"
+2 −2
Original line number Diff line number Diff line
@@ -1656,13 +1656,13 @@
    <string name="inline_minimize_button">Minimize</string>

    <!-- Notification inline controls: button to show notifications silently, without alerting the user [CHAR_LIMIT=35] -->
    <string name="inline_silent_button_silent">Gentle</string>
    <string name="inline_silent_button_silent">Silent</string>

    <!-- Notification inline controls: button to continue showing notifications silently [CHAR_LIMIT=35] -->
    <string name="inline_silent_button_stay_silent">Stay silent</string>

    <!-- Notification inline controls: button to make notifications alert the user [CHAR_LIMIT=35] -->
    <string name="inline_silent_button_alert">Interruptive</string>
    <string name="inline_silent_button_alert">Alerting</string>

    <!-- Notification inline controls: button to continue alerting the user when notifications arrive [CHAR_LIMIT=35] -->
    <string name="inline_silent_button_keep_alerting">Keep alerting</string>
+21 −17
Original line number Diff line number Diff line
@@ -94,6 +94,8 @@ public class NotificationInfo extends LinearLayout implements NotificationGuts.G

    private static final int BUTTON_ANIM_TIME_MS = 200;

    private static final boolean SHOW_BUTTON_SUMMARY = false;

    private INotificationManager mINotificationManager;
    private PackageManager mPm;
    private MetricsLogger mMetricsLogger;
@@ -580,6 +582,7 @@ public class NotificationInfo extends LinearLayout implements NotificationGuts.G
            transition.setDuration(BUTTON_ANIM_TIME_MS);
            TransitionManager.beginDelayedTransition(this, transition);
        }
        if (SHOW_BUTTON_SUMMARY) {
            if (blockState == ACTION_ALERT) {
                TextView view = findViewById(R.id.alert_summary);
                view.setVisibility(VISIBLE);
@@ -602,6 +605,7 @@ public class NotificationInfo extends LinearLayout implements NotificationGuts.G
                }
            }
        }
    }

    private void saveImportanceAndExitReason(@NotificationInfoAction int action) {
        switch (action) {