mirror of
https://github.com/KokaKiwi/BarInsta
synced 2024-11-22 06:37:30 +00:00
Handle possible exception on MainActivity destroy. Fixes part of austinhuang0131/barinsta#1099
This commit is contained in:
parent
1a57c4c813
commit
8f4691a72a
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user