mirror of
https://github.com/jamessanford/kegs.git
synced 2025-01-08 13:29:49 +00:00
Load ROM at the same time that we unpack internal assets.
This commit is contained in:
parent
e09b2a0b8a
commit
c32a835a56
@ -130,7 +130,7 @@ public class KegsMain extends Activity implements KegsKeyboard.StickyReset, Asse
|
||||
protected void getRomFile(String romfile) {
|
||||
final DialogFragment download = new DownloadDialogFragment();
|
||||
download.show(getFragmentManager(), FRAGMENT_DOWNLOAD);
|
||||
new DownloadRom().execute(romfile);
|
||||
new DownloadRom().executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, romfile);
|
||||
}
|
||||
|
||||
class DownloadRom extends AsyncTask<String, Void, Boolean> {
|
||||
@ -393,7 +393,7 @@ public class KegsMain extends Activity implements KegsKeyboard.StickyReset, Asse
|
||||
findViewById(R.id.key_down).setOnClickListener(mButtonClick);
|
||||
|
||||
// Make sure local copy of internal disk images exist.
|
||||
new AssetImages(this, mConfigFile).execute();
|
||||
new AssetImages(this, mConfigFile).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
|
||||
|
||||
final String romfile = mConfigFile.whichRomFile();
|
||||
if (romfile == null) {
|
||||
|
Loading…
Reference in New Issue
Block a user