fix: 后台限制导致一键签到闪退
This commit is contained in:
parent
39a329a36d
commit
6f05be2eca
|
|
@ -7,10 +7,12 @@ import com.huanchengfly.tieba.post.utils.TiebaUtil
|
||||||
|
|
||||||
class AutoSignAlarm : BroadcastReceiver() {
|
class AutoSignAlarm : BroadcastReceiver() {
|
||||||
override fun onReceive(context: Context, intent: Intent) {
|
override fun onReceive(context: Context, intent: Intent) {
|
||||||
TiebaUtil.startSign(context)
|
runCatching {
|
||||||
|
TiebaUtil.startSign(context)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
val TAG: String = AutoSignAlarm::class.java.simpleName
|
val TAG: String = "AutoSignAlarm"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue