parent
f307753dd6
commit
cddef05978
|
|
@ -326,9 +326,26 @@ class MemberRechargeActivity : BaseActivity() {
|
|||
dialogDoMainChoose?.setOnListItemListener(object :
|
||||
DialogDoMainChoose.OnListItemListener {
|
||||
override fun listItemClick() {
|
||||
val intent=Intent(CommonUtils.getApp(), SplashActivity::class.java)
|
||||
intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK or Intent.FLAG_ACTIVITY_NEW_TASK)
|
||||
startActivity(intent)
|
||||
MainApplication.restartApp(this@MemberRechargeActivity, object :
|
||||
MainApplication.OnRestartButtonListener {
|
||||
override fun enterButton() {
|
||||
}
|
||||
|
||||
override fun cancelButton() {
|
||||
val username = MMKV.defaultMMKV()
|
||||
.decodeString(
|
||||
BZYConstants.MMKV_KEY_REMEMBER_USERNAME,
|
||||
""
|
||||
)!!
|
||||
val phToken = MMKV.defaultMMKV()
|
||||
.decodeString(BZYConstants.MMKV_KEY_PH_TOKEN, "")!!
|
||||
val userId = MMKV.defaultMMKV()
|
||||
.decodeString(BZYConstants.MMKV_KEY_USER_ID)!!
|
||||
viewModel.getPhRechargeInfo(username, phToken, userId)
|
||||
dialogDoMainChoose?.dismiss()
|
||||
}
|
||||
|
||||
})
|
||||
}
|
||||
|
||||
})
|
||||
|
|
|
|||
|
|
@ -376,9 +376,16 @@ class NewMainActivity : BaseActivity() {
|
|||
DialogDoMainChoose.OnListItemListener {
|
||||
override fun listItemClick() {
|
||||
RxToast.info(getString(R.string.StorageSuccessful))
|
||||
val intent=Intent(CommonUtils.getApp(), SplashActivity::class.java)
|
||||
intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK or Intent.FLAG_ACTIVITY_NEW_TASK)
|
||||
startActivity(intent)
|
||||
MainApplication.restartApp(this@NewMainActivity,object:MainApplication.OnRestartButtonListener{
|
||||
|
||||
override fun enterButton() {
|
||||
|
||||
}
|
||||
|
||||
override fun cancelButton() {
|
||||
dialogDoMainChoose?.dismiss()
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
})
|
||||
|
|
|
|||
|
|
@ -765,19 +765,16 @@ class SettingActivity : BaseActivity() {
|
|||
dialogDoMainChoose?.setOnTryButtonListener(object :
|
||||
DialogDoMainChoose.OnTryButtonListener {
|
||||
override fun tryButton() {
|
||||
// MainApplication.restartApp(this@SettingActivity,object:MainApplication.OnRestartButtonListener{
|
||||
//
|
||||
// override fun enterButton() {
|
||||
//
|
||||
// }
|
||||
//
|
||||
// override fun cancelButton() {
|
||||
// dialogDoMainChoose?.dismiss()
|
||||
// }
|
||||
// })
|
||||
val intent=Intent(CommonUtils.getApp(), SplashActivity::class.java)
|
||||
intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK or Intent.FLAG_ACTIVITY_NEW_TASK)
|
||||
startActivity(intent)
|
||||
MainApplication.restartApp(this@SettingActivity,object:MainApplication.OnRestartButtonListener{
|
||||
|
||||
override fun enterButton() {
|
||||
|
||||
}
|
||||
|
||||
override fun cancelButton() {
|
||||
dialogDoMainChoose?.dismiss()
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
override fun cancel() {
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ class MainApplication : Application() {
|
|||
|
||||
MainScope().launch {
|
||||
delay(500)
|
||||
ProcessPhoenix.triggerRebirth(mApp)
|
||||
ProcessPhoenix.triggerRebirth(activity)
|
||||
}
|
||||
listener.enterButton()
|
||||
dialogDoMainChoose.dismiss()
|
||||
|
|
|
|||
Loading…
Reference in New Issue