From 8c4ce111a4030661111e222f2f3f69a9a2ea4416 Mon Sep 17 00:00:00 2001 From: Ammar Githam Date: Mon, 7 Dec 2020 19:37:14 +0900 Subject: [PATCH] finish activity when onbackpressed bug occurs Required so the activity finishes when the bug occurs. Current workaround makes the back button unresponsive --- .../main/java/awais/instagrabber/activities/MainActivity.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/awais/instagrabber/activities/MainActivity.java b/app/src/main/java/awais/instagrabber/activities/MainActivity.java index 0fba300a..d488b69b 100644 --- a/app/src/main/java/awais/instagrabber/activities/MainActivity.java +++ b/app/src/main/java/awais/instagrabber/activities/MainActivity.java @@ -215,6 +215,7 @@ public class MainActivity extends BaseLanguageActivity implements FragmentManage super.onBackPressed(); } catch (Exception e) { Log.e(TAG, "onBackPressed: ", e); + finish(); } } }