1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

support package without bundle.

This commit is contained in:
tdzl2003 2016-04-01 12:07:33 +08:00
parent 40bf697f76
commit 611b0570f8

View File

@ -151,7 +151,12 @@ class DownloadTask extends AsyncTask<DownloadTaskParams, Void, Void> {
}
private byte[] readOriginBundle() throws IOException {
InputStream in = context.getAssets().open("index.android.bundle");
InputStream in;
try {
in = context.getAssets().open("index.android.bundle");
} catch (Exception e) {
return new byte[0];
}
int count;
ByteArrayOutputStream fout = new ByteArrayOutputStream();