Fix opening bugs

This commit is contained in:
J-Jamet committed 2019-05-09 23:41:26 +02:00
1 parent 8f77e5874e
commit 6be2148951
19 files changed
+146 -144

No files matched your search

@@ -54,16 +54,6 @@ public class TestUtil {
}
public static InputStream getKeyFileInputStream(Context ctx, String keyfile) throws FileNotFoundException {
InputStream keyIs = null;
if (!EmptyUtils.isNullOrEmpty(keyfile)) {
Uri uri = UriUtil.parseDefaultFile(keyfile);
keyIs = UriUtil.getUriInputStream(ctx, uri);
}
return keyIs;
}
public static String getSdPath(String filename) {
File file = new File(sdcard, filename);
return file.getAbsolutePath();