#848 - App shortcuts support

This commit is contained in:
Moez Bhatti
2018-09-03 20:03:03 -04:00
parent 14399e057d
commit d27575240c
17 changed files with 200 additions and 12 deletions
@@ -21,14 +21,11 @@ package com.moez.QKSMS.manager
import android.content.Context
import android.content.Intent
import com.klinker.android.send_message.BroadcastUtils
import me.leolin.shortcutbadger.ShortcutBadger
import javax.inject.Inject
class WidgetManagerImpl @Inject constructor(private val context: Context) : WidgetManager {
override fun updateUnreadCount(count: Int) {
ShortcutBadger.applyCount(context, count)
override fun updateUnreadCount() {
BroadcastUtils.sendExplicitBroadcast(context, Intent(), WidgetManager.ACTION_NOTIFY_DATASET_CHANGED)
}