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

Commit 447c7f4c authored by Ned Burns's avatar Ned Burns Committed by android-build-merger
Browse files

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

am: 4a58ec22

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


    <!-- Notification inline controls: button to show notifications silently, without alerting the user [CHAR_LIMIT=35] -->
    <!-- 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] -->
    <!-- Notification inline controls: button to continue showing notifications silently [CHAR_LIMIT=35] -->
    <string name="inline_silent_button_stay_silent">Stay silent</string>
    <string name="inline_silent_button_stay_silent">Stay silent</string>


    <!-- Notification inline controls: button to make notifications alert the user [CHAR_LIMIT=35] -->
    <!-- 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] -->
    <!-- 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>
    <string name="inline_silent_button_keep_alerting">Keep alerting</string>
+21 −17
Original line number Original line 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 int BUTTON_ANIM_TIME_MS = 200;


    private static final boolean SHOW_BUTTON_SUMMARY = false;

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


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