mirror of
https://github.com/KokaKiwi/BarInsta
synced 2025-12-12 06:56:31 +00:00
Handle possible exception on MainActivity destroy. Fixes part of austinhuang0131/barinsta#1099
This commit is contained in:
parent
1a57c4c813
commit
8f4691a72a
1 changed files with 5 additions and 1 deletions
|
|
@ -326,7 +326,11 @@ public class MainActivity extends BaseLanguageActivity implements FragmentManage
|
|||
Log.e(TAG, "onDestroy: ", e);
|
||||
}
|
||||
unbindActivityCheckerService();
|
||||
RetrofitFactory.getInstance().destroy();
|
||||
try {
|
||||
RetrofitFactory.getInstance().destroy();
|
||||
} catch (Exception e) {
|
||||
Log.e(TAG, "onDestroy: ", e);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue