mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-04-14 19:56:32 +00:00
fix typo
This commit is contained in:
parent
6d062aa7b6
commit
ca08f1c695
7 changed files with 8 additions and 12 deletions
|
|
@ -32,7 +32,7 @@ interface NotificationsManager {
|
|||
}
|
||||
|
||||
class MainNotificationsManager : NotificationsManager {
|
||||
private val seenNotifications: MutableMap<String, Boolean>
|
||||
private val seenNotifications: MutableMap<String, Boolean> = HashMap()
|
||||
override var apiClient: WeakReference<ApiClient>? = null
|
||||
|
||||
private var lastNotificationHandling: Date? = null
|
||||
|
|
@ -41,10 +41,6 @@ class MainNotificationsManager : NotificationsManager {
|
|||
override val displayNotificationEvents: Flow<Notification> =
|
||||
displayedNotificationEvents.receiveAsFlow().filterNotNull()
|
||||
|
||||
init {
|
||||
this.seenNotifications = HashMap()
|
||||
}
|
||||
|
||||
override fun setNotifications(current: List<Notification>) {
|
||||
notificationsFlow.value = current
|
||||
this.handlePopupNotifications(current)
|
||||
|
|
|
|||
|
|
@ -208,7 +208,7 @@ class TaskAlarmManager(
|
|||
context,
|
||||
intentId,
|
||||
intent,
|
||||
PendingIntent.FLAG_UPDATE_CURRENT + PendingIntent.FLAG_IMMUTABE
|
||||
PendingIntent.FLAG_UPDATE_CURRENT + PendingIntent.FLAG_IMMUTABLE
|
||||
)
|
||||
val am = context.getSystemService(Context.ALARM_SERVICE) as? AlarmManager
|
||||
sender.cancel()
|
||||
|
|
@ -261,7 +261,7 @@ class TaskAlarmManager(
|
|||
context,
|
||||
0,
|
||||
notificationIntent,
|
||||
PendingIntent.FLAG_UPDATE_CURRENT + PendingIntent.FLAG_IMMUTABE
|
||||
PendingIntent.FLAG_UPDATE_CURRENT + PendingIntent.FLAG_IMMUTABLE
|
||||
)
|
||||
|
||||
setAlarm(context, triggerTime, pendingIntent)
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@ abstract class HabiticaLocalNotification(
|
|||
context,
|
||||
3000,
|
||||
intent,
|
||||
PendingIntent.FLAG_UPDATE_CURRENT + PendingIntent.FLAG_IMMUTABE
|
||||
PendingIntent.FLAG_UPDATE_CURRENT + PendingIntent.FLAG_IMMUTABLE
|
||||
)
|
||||
notificationBuilder.setContentIntent(pendingIntent)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -104,7 +104,7 @@ class TaskReceiver : BroadcastReceiver() {
|
|||
context,
|
||||
task.id.hashCode(),
|
||||
completeIntent,
|
||||
PendingIntent.FLAG_UPDATE_CURRENT + PendingIntent.FLAG_IMMUTABE
|
||||
PendingIntent.FLAG_UPDATE_CURRENT + PendingIntent.FLAG_IMMUTABLE
|
||||
)
|
||||
notificationBuilder.addAction(
|
||||
0,
|
||||
|
|
|
|||
|
|
@ -202,7 +202,7 @@ class AvatarStatsWidgetProvider : BaseWidgetProvider() {
|
|||
context,
|
||||
0,
|
||||
openAppIntent,
|
||||
PendingIntent.FLAG_UPDATE_CURRENT + PendingIntent.FLAG_IMMUTABE
|
||||
PendingIntent.FLAG_UPDATE_CURRENT + PendingIntent.FLAG_IMMUTABLE
|
||||
)
|
||||
remoteViews.setOnClickPendingIntent(android.R.id.background, openApp)
|
||||
|
||||
|
|
|
|||
|
|
@ -143,7 +143,7 @@ class HabitButtonWidgetService : Service() {
|
|||
context,
|
||||
widgetId + direction.hashCode(),
|
||||
taskIntent,
|
||||
PendingIntent.FLAG_UPDATE_CURRENT + PendingIntent.FLAG_IMMUTABE
|
||||
PendingIntent.FLAG_UPDATE_CURRENT + PendingIntent.FLAG_IMMUTABLE
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@ abstract class TaskListWidgetProvider : BaseWidgetProvider() {
|
|||
context,
|
||||
0,
|
||||
openAppIntent,
|
||||
PendingIntent.FLAG_UPDATE_CURRENT + PendingIntent.FLAG_IMMUTABE
|
||||
PendingIntent.FLAG_UPDATE_CURRENT + PendingIntent.FLAG_IMMUTABLE
|
||||
)
|
||||
rv.setOnClickPendingIntent(R.id.widget_title, openApp)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue