parent
81b7fcdb49
commit
b130f2e92f
|
|
@ -91,7 +91,6 @@ class NodeGroupActivity : BaseActivity(){
|
|||
cacheNodeStr = MMKV.defaultMMKV().decodeString(BZYConstants.NODE_All_ITEM_NAME_KEY, "")
|
||||
|
||||
val intentFilter = IntentFilter(Intents.ACTION_NODE_LIST)
|
||||
intentFilter.addAction(Intents.ACTION_SUB_HTTP_STATUS)
|
||||
broadcastReceiver = NodeListBR()
|
||||
if (Build.VERSION.SDK_INT >= 34 && applicationInfo.targetSdkVersion >= 34) {
|
||||
registerReceiver(
|
||||
|
|
@ -215,17 +214,6 @@ class NodeGroupActivity : BaseActivity(){
|
|||
setNewData(currentNode)
|
||||
swipeLayout.isRefreshing = false
|
||||
}
|
||||
Intents.ACTION_SUB_HTTP_STATUS->{
|
||||
val codeMsg= intent.getIntExtra("code",200)
|
||||
val exceptionStr = intent.getSerializableExtra("exception")
|
||||
Log.i("NODEPage ACTION_SUB_HTTP_STATUS codeMsg::${codeMsg} exceptionStr::${exceptionStr}")
|
||||
if(codeMsg!=200){
|
||||
RxToast.info(resources.getString(R.string.SubscriptionlinkTop))
|
||||
}
|
||||
timerJob?.cancel()
|
||||
hideLoading()
|
||||
}
|
||||
|
||||
else -> {
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue