Added icon for announcements

pull/210/head
M66B 2 years ago
parent aec7072624
commit 9a033e0e80

@ -1856,13 +1856,13 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
NotificationCompat.Builder builder =
new NotificationCompat.Builder(ActivityView.this, "announcements")
.setSmallIcon(R.drawable.baseline_warning_white_24)
.setSmallIcon(R.drawable.baseline_campaign_white_24)
.setContentTitle(announcement.title)
.setContentText(announcement.text)
.setAutoCancel(true)
.setShowWhen(true)
.setPriority(NotificationCompat.PRIORITY_DEFAULT)
.setCategory(NotificationCompat.CATEGORY_REMINDER)
.setCategory(NotificationCompat.CATEGORY_RECOMMENDATION)
.setVisibility(NotificationCompat.VISIBILITY_SECRET);
if (announcement.link != null) {

@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24"
android:tint="?attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
android:pathData="M18,11v2h4v-2h-4zM16,17.61c0.96,0.71 2.21,1.65 3.2,2.39 0.4,-0.53 0.8,-1.07 1.2,-1.6 -0.99,-0.74 -2.24,-1.68 -3.2,-2.4 -0.4,0.54 -0.8,1.08 -1.2,1.61zM20.4,5.6c-0.4,-0.53 -0.8,-1.07 -1.2,-1.6 -0.99,0.74 -2.24,1.68 -3.2,2.4 0.4,0.53 0.8,1.07 1.2,1.6 0.96,-0.72 2.21,-1.65 3.2,-2.4zM4,9c-1.1,0 -2,0.9 -2,2v2c0,1.1 0.9,2 2,2h1v4h2v-4h1l5,3L13,6L8,9L4,9zM15.5,12c0,-1.33 -0.58,-2.53 -1.5,-3.35v6.69c0.92,-0.81 1.5,-2.01 1.5,-3.34z"/>
</vector>
Loading…
Cancel
Save