From e50366da8a531e856ea9030b5d7ca512049ab5cf Mon Sep 17 00:00:00 2001 From: gdlbo <41114720+gdlbo@users.noreply.github.com> Date: Wed, 12 Oct 2022 00:02:53 +0300 Subject: [PATCH] added #701 --- .../main/java/ru/vtosters/lite/ui/fragments/OtherFragment.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/ru/vtosters/lite/ui/fragments/OtherFragment.java b/app/src/main/java/ru/vtosters/lite/ui/fragments/OtherFragment.java index a2cfed18b..04ed15a6b 100644 --- a/app/src/main/java/ru/vtosters/lite/ui/fragments/OtherFragment.java +++ b/app/src/main/java/ru/vtosters/lite/ui/fragments/OtherFragment.java @@ -11,6 +11,7 @@ import static ru.vtosters.lite.utils.AccountManagerUtils.getUserToken; import static ru.vtosters.lite.utils.AndroidUtils.dp2px; import static ru.vtosters.lite.utils.AndroidUtils.getDefaultPrefs; import static ru.vtosters.lite.utils.LifecycleUtils.restartApplication; +import static ru.vtosters.lite.utils.LifecycleUtils.restartApplicationWithTimer; import static ru.vtosters.lite.utils.ThemesUtils.getTextAttr; import android.annotation.SuppressLint; @@ -346,6 +347,7 @@ public class OtherFragment extends MaterialPreferenceToolbarFragment { .setAdapter(adapter, (dialog, which) -> { try { restoreBackup(arr[which]); + restartApplicationWithTimer(); Toast.makeText(getContext(), requireContext().getString(R.string.backup_success), LENGTH_LONG).show(); } catch (IOException e) { e.printStackTrace();