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

Commit 8046724d authored by Daniel Sandler's avatar Daniel Sandler Committed by Android Git Automerger
Browse files

am e95658c9: New backgrounds for notifications.

* commit 'e95658c9':
  New backgrounds for notifications.
parents a0c24917 e95658c9
Loading
Loading
Loading
Loading
+12 −0
Original line number Original line Diff line number Diff line
@@ -796,6 +796,12 @@ public class Notification implements Parcelable
        if (this.icon != 0) {
        if (this.icon != 0) {
            contentView.setImageViewResource(R.id.icon, this.icon);
            contentView.setImageViewResource(R.id.icon, this.icon);
        }
        }
        if (priority < PRIORITY_LOW) {
            contentView.setInt(R.id.icon,
                    "setBackgroundResource", R.drawable.notification_template_icon_low_bg);
            contentView.setInt(R.id.status_bar_latest_event_content,
                    "setBackgroundResource", R.drawable.notification_bg_low);
        }
        if (contentTitle != null) {
        if (contentTitle != null) {
            contentView.setTextViewText(R.id.title, contentTitle);
            contentView.setTextViewText(R.id.title, contentTitle);
        }
        }
@@ -1364,6 +1370,12 @@ public class Notification implements Parcelable
                contentView.setImageViewBitmap(R.id.icon, mLargeIcon);
                contentView.setImageViewBitmap(R.id.icon, mLargeIcon);
                smallIconImageViewId = R.id.right_icon;
                smallIconImageViewId = R.id.right_icon;
            }
            }
            if (mPriority < PRIORITY_LOW) {
                contentView.setInt(R.id.icon,
                        "setBackgroundResource", R.drawable.notification_template_icon_low_bg);
                contentView.setInt(R.id.status_bar_latest_event_content,
                        "setBackgroundResource", R.drawable.notification_bg_low);
            }
            if (mSmallIcon != 0) {
            if (mSmallIcon != 0) {
                contentView.setImageViewResource(smallIconImageViewId, mSmallIcon);
                contentView.setImageViewResource(smallIconImageViewId, mSmallIcon);
                contentView.setViewVisibility(smallIconImageViewId, View.VISIBLE);
                contentView.setViewVisibility(smallIconImageViewId, View.VISIBLE);
+176 B
Loading image diff...
+181 B
Loading image diff...
+176 B
Loading image diff...
+180 B
Loading image diff...
Loading