finish activity when onbackpressed bug occurs

Required so the activity finishes when the bug occurs. Current workaround makes the back button unresponsive
This commit is contained in:
Ammar Githam 2020-12-07 19:37:14 +09:00
parent 951117c769
commit 8c4ce111a4
1 changed files with 1 additions and 0 deletions

View File

@ -215,6 +215,7 @@ public class MainActivity extends BaseLanguageActivity implements FragmentManage
super.onBackPressed();
} catch (Exception e) {
Log.e(TAG, "onBackPressed: ", e);
finish();
}
}
}