From 75237d9c8aa38d05e8e7f90a4057aba95c122cb3 Mon Sep 17 00:00:00 2001 From: akliuxingyuan Date: Tue, 3 Oct 2023 23:18:19 +0800 Subject: [PATCH] return after delete addons cache file --- .../java/org/mozilla/fenix/addons/AddonsManagementFragment.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/org/mozilla/fenix/addons/AddonsManagementFragment.kt b/app/src/main/java/org/mozilla/fenix/addons/AddonsManagementFragment.kt index 1917b8f1770a..bc493f4ead41 100644 --- a/app/src/main/java/org/mozilla/fenix/addons/AddonsManagementFragment.kt +++ b/app/src/main/java/org/mozilla/fenix/addons/AddonsManagementFragment.kt @@ -165,6 +165,7 @@ class AddonsManagementFragment : Fragment(R.layout.fragment_add_ons_management) .setMessage(R.string.confirm_addons_delete_cache) .setPositiveButton(R.string.confirm_addons_delete_cache_yes) { _, _ -> requireComponents.clearAddonCache() + requireActivity().onBackPressedDispatcher.onBackPressed() } .setNegativeButton(R.string.confirm_addons_delete_cache_no) { _, _ -> // User cancelled the dialog.