Set Delta Chat notification icon.

This commit is contained in:
B. Petersen
2016-12-22 12:27:23 +01:00
parent bb673dd992
commit d4e94b2fbc
6 changed files with 4 additions and 3 deletions
@@ -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;
Binary file not shown.

Before

Width:  |  Height:  |  Size: 683 B

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 484 B

After

Width:  |  Height:  |  Size: 729 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 900 B

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB