Merge branch 'main' of github.com:binwiederhier/ntfy-android into auth

This commit is contained in:
Philipp Heckel 2022-01-28 11:43:02 -05:00
commit 2328081150
2 changed files with 5 additions and 3 deletions

View file

@ -30,7 +30,8 @@
<!-- Main activity -->
<activity
android:name=".ui.MainActivity"
android:label="@string/app_name">
android:label="@string/app_name"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
@ -62,7 +63,8 @@
<!-- Subscriber service restart on reboot -->
<receiver
android:name=".service.SubscriberService$BootStartReceiver"
android:enabled="true">
android:enabled="true"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED"/>
</intent-filter>

View file

@ -276,7 +276,7 @@ class SubscriberService : Service() {
private fun createNotification(title: String, text: String): Notification {
val pendingIntent: PendingIntent = Intent(this, MainActivity::class.java).let { notificationIntent ->
PendingIntent.getActivity(this, 0, notificationIntent, 0)
PendingIntent.getActivity(this, 0, notificationIntent, PendingIntent.FLAG_IMMUTABLE)
}
return NotificationCompat.Builder(this, NOTIFICATION_CHANNEL_ID)
.setSmallIcon(R.drawable.ic_notification_instant)