mirror of
https://github.com/2009scape/2009Scape-mobile.git
synced 2025-12-21 09:01:56 -07:00
▼▼▼
- Probably fix race condition when clearing the cache - Unload unneeded launcher activity while in game
This commit is contained in:
parent
2478758e5d
commit
ad8d115b82
3 changed files with 4 additions and 1 deletions
|
|
@ -62,7 +62,6 @@ public class BaseMainActivity extends BaseActivity {
|
|||
|
||||
protected void initLayout(int resId) {
|
||||
setContentView(resId);
|
||||
ProfileAdapter.clearIconCache();
|
||||
try {
|
||||
Logger.getInstance().reset();
|
||||
// FIXME: is it safe fot multi thread?
|
||||
|
|
|
|||
|
|
@ -91,6 +91,8 @@ public class PojavLauncherActivity extends BaseLauncherActivity
|
|||
protected void onDestroy() {
|
||||
ExtraCore.removeExtraListenerFromValue("back_preference", backPreferenceListener);
|
||||
super.onDestroy();
|
||||
ProfileAdapter.clearIconCache();
|
||||
Log.i("LauncherActivity","Destroyed!");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -349,6 +349,8 @@ public class MinecraftDownloaderTask extends AsyncTask<String, String, Throwable
|
|||
mainIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_DOCUMENT);
|
||||
mainIntent.addFlags(Intent.FLAG_ACTIVITY_MULTIPLE_TASK);
|
||||
mActivity.startActivity(mainIntent);
|
||||
mActivity.finish();
|
||||
Log.i("ActCheck","mainActivity finishing="+mActivity.isFinishing()+", destroyed="+mActivity.isDestroyed());
|
||||
}
|
||||
catch (Throwable e) {
|
||||
Tools.showError(mActivity, e);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue