mirror of
https://github.com/binwiederhier/ntfy-android.git
synced 2024-09-30 01:16:14 +13:00
Merge branch 'main' of github.com:binwiederhier/ntfy-android into auth
This commit is contained in:
commit
2328081150
2 changed files with 5 additions and 3 deletions
|
@ -30,7 +30,8 @@
|
||||||
<!-- Main activity -->
|
<!-- Main activity -->
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.MainActivity"
|
android:name=".ui.MainActivity"
|
||||||
android:label="@string/app_name">
|
android:label="@string/app_name"
|
||||||
|
android:exported="true">
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="android.intent.action.MAIN"/>
|
<action android:name="android.intent.action.MAIN"/>
|
||||||
|
|
||||||
|
@ -62,7 +63,8 @@
|
||||||
<!-- Subscriber service restart on reboot -->
|
<!-- Subscriber service restart on reboot -->
|
||||||
<receiver
|
<receiver
|
||||||
android:name=".service.SubscriberService$BootStartReceiver"
|
android:name=".service.SubscriberService$BootStartReceiver"
|
||||||
android:enabled="true">
|
android:enabled="true"
|
||||||
|
android:exported="true">
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="android.intent.action.BOOT_COMPLETED"/>
|
<action android:name="android.intent.action.BOOT_COMPLETED"/>
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
|
|
|
@ -276,7 +276,7 @@ class SubscriberService : Service() {
|
||||||
|
|
||||||
private fun createNotification(title: String, text: String): Notification {
|
private fun createNotification(title: String, text: String): Notification {
|
||||||
val pendingIntent: PendingIntent = Intent(this, MainActivity::class.java).let { notificationIntent ->
|
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)
|
return NotificationCompat.Builder(this, NOTIFICATION_CHANNEL_ID)
|
||||||
.setSmallIcon(R.drawable.ic_notification_instant)
|
.setSmallIcon(R.drawable.ic_notification_instant)
|
||||||
|
|
Loading…
Reference in a new issue