fix: 后台限制导致一键签到闪退

This commit is contained in:
HuanCheng65 2023-03-10 13:02:36 +08:00
parent 39a329a36d
commit 6f05be2eca
No known key found for this signature in database
GPG Key ID: E9031EF91A805148
1 changed files with 4 additions and 2 deletions

View File

@ -7,10 +7,12 @@ import com.huanchengfly.tieba.post.utils.TiebaUtil
class AutoSignAlarm : BroadcastReceiver() {
override fun onReceive(context: Context, intent: Intent) {
TiebaUtil.startSign(context)
runCatching {
TiebaUtil.startSign(context)
}
}
companion object {
val TAG: String = AutoSignAlarm::class.java.simpleName
val TAG: String = "AutoSignAlarm"
}
}