Skip to content

Commit

Permalink
fix: allow reset wallet to finish
Browse files Browse the repository at this point in the history
  • Loading branch information
HashEngineering committed Feb 4, 2025
1 parent 2abfa75 commit 5096ce1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ protected void onPause() {
super.onPause();
}

protected void doUnbindService() {
public void doUnbindService() {
if (shouldUnbind) {
unbindService(serviceConnection);
shouldUnbind = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ class SecurityFragment : Fragment(R.layout.fragment_security) {
viewModel.logEvent(AnalyticsConstants.Security.RESET_WALLET)
val dialog = AdaptiveDialog.progress(getString(R.string.perm_lock_wipe_wallet))
dialog.show(requireActivity())
(requireActivity() as AbstractBindServiceActivity).doUnbindService()
viewModel.triggerWipe() {
dialog.dismissAllowingStateLoss()
startActivity(OnboardingActivity.createIntent(requireContext()))
Expand Down

0 comments on commit 5096ce1

Please sign in to comment.