mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2026-11-29 05:13:03 -08:00
Fix opening bugs
This commit is contained in:
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();
|
||||
|
||||
Reference in new issue
Block a user