Browse Source

Wrapping super.onDestroy in try-catch in MainActivity to workaround NavController crash

renovate/org.robolectric-robolectric-4.x
Ammar Githam 4 years ago
parent
commit
abd6dd1143
  1. 6
      app/src/main/java/awais/instagrabber/activities/MainActivity.java

6
app/src/main/java/awais/instagrabber/activities/MainActivity.java

@ -220,7 +220,11 @@ public class MainActivity extends BaseLanguageActivity implements FragmentManage
@Override @Override
protected void onDestroy() { protected void onDestroy() {
super.onDestroy();
try {
super.onDestroy();
} catch (Exception e) {
Log.e(TAG, "onDestroy: ", e);
}
unbindActivityCheckerService(); unbindActivityCheckerService();
} }

Loading…
Cancel
Save