Commit 4c5ca0d7 authored by wanglei's avatar wanglei

...

parent 4bf1f129
......@@ -38,6 +38,9 @@ import com.base.browserwhite.utils.ActivityLauncher
import com.base.browserwhite.utils.AppPreferences
import com.base.browserwhite.utils.RoleManagerUtils.isDefaultBrowser
import com.base.browserwhite.utils.RoleManagerUtils.requestRoleBrowser
import com.base.browserwhite.utils.SpBeanUtils
import com.base.browserwhite.utils.SpBeanUtils.HISTORY_SP_KEY
import com.base.browserwhite.utils.SpBeanUtils.SEARCH_RECORD_SP_KEY
import com.base.browserwhite.utils.ToastUtils.toast
import com.google.android.material.bottomsheet.BottomSheetBehavior
import com.google.android.material.bottomsheet.BottomSheetDialog
......@@ -243,6 +246,12 @@ object DialogViews {
dialog.dismiss()
Toast.makeText(this, "Records have been cleared", Toast.LENGTH_SHORT).show()
if (binding.ivSelectorSearchRecord.isSelected) {
SpBeanUtils.clearSpBean(SEARCH_RECORD_SP_KEY)
}
if (binding.ivSelectorHistoricalRecord.isSelected){
SpBeanUtils.clearSpBean(HISTORY_SP_KEY)
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment