Browse Source

finish activity when onbackpressed bug occurs

Required so the activity finishes when the bug occurs. Current workaround makes the back button unresponsive
renovate/org.robolectric-robolectric-4.x
Ammar Githam 4 years ago
parent
commit
8c4ce111a4
  1. 1
      app/src/main/java/awais/instagrabber/activities/MainActivity.java

1
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();
}
}
}

Loading…
Cancel
Save