clearing chat data on restart
This commit is contained in:
@@ -447,12 +447,14 @@ class BuyInsuranceActivity : BaseActivity(),
|
||||
finish()
|
||||
}
|
||||
|
||||
companion object{
|
||||
companion object {
|
||||
const val REMOVE_CHAT_INTENT_ACTION = "intent.action.remove.chat"
|
||||
}
|
||||
|
||||
override fun onResetClick() {
|
||||
LocalBroadcastManager.getInstance(this).sendBroadcast(Intent(REMOVE_CHAT_INTENT_ACTION))
|
||||
// clear chat data before restarting chat screen
|
||||
NaviPreferenceManager.clearChatData()
|
||||
goToChatScreen()
|
||||
}
|
||||
|
||||
|
||||
@@ -26,11 +26,11 @@ class ResetPopupBottomSheet : BaseBottomSheet() {
|
||||
private fun initUI() {
|
||||
binding.resetBtn.setOnClickListener {
|
||||
listener?.onResetClick()
|
||||
dismiss()
|
||||
safelyDismissDialog()
|
||||
}
|
||||
|
||||
binding.closeBtn.setOnClickListener {
|
||||
dismiss()
|
||||
safelyDismissDialog()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user