-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from liangchenhe55/dev
Dev/一堆更新与修复
- Loading branch information
Showing
32 changed files
with
1,080 additions
and
160 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 0 additions & 23 deletions
23
app/src/main/java/cc/chenhe/qqnotifyevo/BootCompletedReceiver.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package cc.chenhe.qqnotifyevo | ||
|
||
import android.content.BroadcastReceiver | ||
import android.content.Context | ||
import android.content.Intent | ||
import androidx.core.app.NotificationManagerCompat | ||
import cc.chenhe.qqnotifyevo.service.NotificationMonitorService | ||
import cc.chenhe.qqnotifyevo.utils.* | ||
|
||
class StaticReceiver : BroadcastReceiver() { | ||
|
||
override fun onReceive(context: Context, intent: Intent) { | ||
when (intent.action) { | ||
Intent.ACTION_BOOT_COMPLETED -> { | ||
if (getMode(context) == MODE_LEGACY) { | ||
val start = Intent(context, NotificationMonitorService::class.java) | ||
context.startService(start) | ||
} | ||
} | ||
ACTION_MULTI_MSG_DONT_SHOW -> { | ||
NotificationManagerCompat.from(context).cancel(NOTIFY_ID_MULTI_MSG) | ||
nevoMultiMsgTip(context, false) | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.