mirror of
https://github.com/adolfintel/OpenPods.git
synced 2026-09-14 14:56:11 -04:00
Fix notifications android 12 and above
This commit is contained in:
@@ -30,6 +30,8 @@ public class NotificationBuilder {
|
||||
mBuilder.setVisibility(NotificationCompat.VISIBILITY_PUBLIC);
|
||||
mBuilder.setCustomContentView(notificationArr[1]);
|
||||
mBuilder.setCustomBigContentView(notificationArr[0]);
|
||||
|
||||
mBuilder.setCategory(NotificationCompat.CATEGORY_SERVICE); //show notification on android 12 and above #144 #143
|
||||
}
|
||||
|
||||
public Notification build (PodsStatus status) {
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<resources xmlns:tools="http://schemas.android.com/tools">
|
||||
|
||||
<string name="app_name" translatable="false">OpenPods</string>
|
||||
|
||||
<string name="bg_noti_channel" translatable="false">Фоновое уведомление</string>
|
||||
|
||||
Reference in New Issue
Block a user