Commit 29c3f0ac authored by fallenstardust's avatar fallenstardust

fix unregistered messagReceiver

parent d55521a5
......@@ -162,7 +162,7 @@ public class MainActivity extends HomeActivity {
protected void onDestroy() {
YGOStarter.onDestroy(this);
super.onDestroy();
if (mResCheckTask != null)
if (mResCheckTask.mReceiver != null)
mResCheckTask.unregisterMReceiver();
}
......
......@@ -277,7 +277,6 @@ public class ResCheckTask extends AsyncTask<Void, Integer, Integer> {
FileUtils.copyDir(textures, mSettings.getCoreSkinPath());
FileUtils.copyDir(pics, mSettings.getCardImagePath());
han.sendEmptyMessage(0);
loadData();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment