Commit 29c3f0ac authored by fallenstardust's avatar fallenstardust

fix unregistered messagReceiver

parent d55521a5
...@@ -162,7 +162,7 @@ public class MainActivity extends HomeActivity { ...@@ -162,7 +162,7 @@ public class MainActivity extends HomeActivity {
protected void onDestroy() { protected void onDestroy() {
YGOStarter.onDestroy(this); YGOStarter.onDestroy(this);
super.onDestroy(); super.onDestroy();
if (mResCheckTask != null) if (mResCheckTask.mReceiver != null)
mResCheckTask.unregisterMReceiver(); mResCheckTask.unregisterMReceiver();
} }
......
...@@ -277,7 +277,6 @@ public class ResCheckTask extends AsyncTask<Void, Integer, Integer> { ...@@ -277,7 +277,6 @@ public class ResCheckTask extends AsyncTask<Void, Integer, Integer> {
FileUtils.copyDir(textures, mSettings.getCoreSkinPath()); FileUtils.copyDir(textures, mSettings.getCoreSkinPath());
FileUtils.copyDir(pics, mSettings.getCardImagePath()); FileUtils.copyDir(pics, mSettings.getCardImagePath());
han.sendEmptyMessage(0); han.sendEmptyMessage(0);
loadData(); 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