mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
Set Delta Chat notification icon.
This commit is contained in:
@@ -34,6 +34,7 @@ import android.support.v4.app.NotificationManagerCompat;
|
||||
import android.support.v4.app.RemoteInput;
|
||||
import android.util.SparseArray;
|
||||
|
||||
import com.b44t.ui.ActionBar.Theme;
|
||||
import com.b44t.ui.LaunchActivity;
|
||||
|
||||
import java.util.ArrayList;
|
||||
@@ -1345,7 +1346,7 @@ public class NotificationsController {
|
||||
.setContentIntent(contentIntent)
|
||||
.setGroup("messages")
|
||||
.setGroupSummary(true)
|
||||
.setColor(0xff2ca5e0);
|
||||
.setColor(Theme.ACTION_BAR_COLOR);
|
||||
|
||||
mBuilder.setCategory(NotificationCompat.CATEGORY_MESSAGE);
|
||||
if (chat == null && user != null && user.phone != null && user.phone.length() > 0) {
|
||||
@@ -1639,7 +1640,7 @@ public class NotificationsController {
|
||||
.setGroup("messages")
|
||||
.setContentText(text)
|
||||
.setAutoCancel(true)
|
||||
.setColor(0xff2ca5e0)
|
||||
.setColor(Theme.ACTION_BAR_COLOR)
|
||||
.setGroupSummary(false)
|
||||
.setContentIntent(contentIntent)
|
||||
.extend(wearableExtender)
|
||||
|
||||
@@ -28,7 +28,7 @@ import com.b44t.ui.Components.ChatAttachAlert;
|
||||
|
||||
public class Theme {
|
||||
|
||||
public static final int ACTION_BAR_COLOR = 0xff415e6b;
|
||||
public static final int ACTION_BAR_COLOR = 0xff415e6b; // also used for the notification icon background
|
||||
public static final int ACTION_BAR_PHOTO_VIEWER_COLOR = 0x7f000000;
|
||||
public static final int ACTION_BAR_MEDIA_PICKER_COLOR = 0xff333333;
|
||||
public static final int ACTION_BAR_PLAYER_COLOR = 0xffffffff;
|
||||
|
||||
Reference in New Issue
Block a user