mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-29 18:08:58 +03:00
Fix notification crash
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
9669a36f0b
commit
6e61a18af0
1 changed files with 3 additions and 2 deletions
|
@ -31,6 +31,7 @@ import android.graphics.BitmapFactory;
|
||||||
import android.media.RingtoneManager;
|
import android.media.RingtoneManager;
|
||||||
import android.net.Uri;
|
import android.net.Uri;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
|
import android.support.v4.app.NotificationCompat;
|
||||||
import android.util.Base64;
|
import android.util.Base64;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
|
|
||||||
|
@ -130,9 +131,9 @@ public class MagicFirebaseMessagingService extends FirebaseMessagingService {
|
||||||
CRC32 crc32 = new CRC32();
|
CRC32 crc32 = new CRC32();
|
||||||
|
|
||||||
|
|
||||||
Notification.Builder notificationBuilder = new Notification.Builder(this)
|
NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this)
|
||||||
.setSmallIcon(smallIcon)
|
|
||||||
.setLargeIcon(largeIcon)
|
.setLargeIcon(largeIcon)
|
||||||
|
.setSmallIcon(smallIcon)
|
||||||
.setColor(getColor(R.color.colorPrimary))
|
.setColor(getColor(R.color.colorPrimary))
|
||||||
.setCategory(category)
|
.setCategory(category)
|
||||||
.setPriority(priority)
|
.setPriority(priority)
|
||||||
|
|
Loading…
Reference in a new issue