mirror of
https://gitee.com/replugin/RePlugin.git
synced 2024-12-02 11:48:02 +08:00
There will not be a confusing warning message when a file in the Assets directory is not found
This commit is contained in:
parent
fe25514770
commit
e176e7350d
@ -30,6 +30,7 @@ import com.qihoo360.replugin.utils.FileUtils;
|
|||||||
import java.io.DataInputStream;
|
import java.io.DataInputStream;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.FileInputStream;
|
import java.io.FileInputStream;
|
||||||
|
import java.io.FileNotFoundException;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
|
|
||||||
@ -75,7 +76,10 @@ public class PackageFilesUtil {
|
|||||||
if (BuildConfig.DEBUG) {
|
if (BuildConfig.DEBUG) {
|
||||||
Log.i(TAG, "Opening in assets: " + filename);
|
Log.i(TAG, "Opening in assets: " + filename);
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (FileNotFoundException e) {
|
||||||
|
// 找不到文件?很正常,不做任何处理
|
||||||
|
// Ignore
|
||||||
|
} catch (IOException e) {
|
||||||
if (BuildConfig.DEBUG) {
|
if (BuildConfig.DEBUG) {
|
||||||
Log.w(TAG, filename, e);
|
Log.w(TAG, filename, e);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user