1
0
mirror of https://github.com/KokaKiwi/BarInsta synced 2024-11-15 19:27:31 +00:00

Handle possible exception on MainActivity destroy. Fixes part of austinhuang0131/barinsta#1099

This commit is contained in:
Ammar Githam 2021-04-29 00:34:54 +09:00
parent 1a57c4c813
commit 8f4691a72a

View File

@ -326,7 +326,11 @@ public class MainActivity extends BaseLanguageActivity implements FragmentManage
Log.e(TAG, "onDestroy: ", e); Log.e(TAG, "onDestroy: ", e);
} }
unbindActivityCheckerService(); unbindActivityCheckerService();
RetrofitFactory.getInstance().destroy(); try {
RetrofitFactory.getInstance().destroy();
} catch (Exception e) {
Log.e(TAG, "onDestroy: ", e);
}
} }
@Override @Override