diff options
author | Dominik Schürmann <dominik@dominikschuermann.de> | 2015-10-15 19:19:43 +0200 |
---|---|---|
committer | Dominik Schürmann <dominik@dominikschuermann.de> | 2015-10-15 19:19:43 +0200 |
commit | c0cd8729546dadb98760ca1ff3ae6147c2f4f5b7 (patch) | |
tree | 67ac0fe99036381598c617ce6e3a5bb3e3951b97 | |
parent | 8279f84eb88a80e197514f2ab94e0e91416a19e7 (diff) | |
download | open-keychain-c0cd8729546dadb98760ca1ff3ae6147c2f4f5b7.tar.gz open-keychain-c0cd8729546dadb98760ca1ff3ae6147c2f4f5b7.tar.bz2 open-keychain-c0cd8729546dadb98760ca1ff3ae6147c2f4f5b7.zip |
Show the Internal Storage menu item on openFile
-rw-r--r-- | OpenKeychain/src/main/java/org/sufficientlysecure/keychain/util/FileHelper.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/util/FileHelper.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/util/FileHelper.java index 671275823..32ee2ef7e 100644 --- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/util/FileHelper.java +++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/util/FileHelper.java @@ -92,7 +92,8 @@ public class FileHelper { Intent intent = new Intent(Intent.ACTION_CREATE_DOCUMENT); intent.addCategory(Intent.CATEGORY_OPENABLE); intent.setType(mimeType); - intent.putExtra("android.content.extra.SHOW_ADVANCED", true); // Note: This is not documented, but works + // Note: This is not documented, but works: Show the Internal Storage menu item in the drawer! + intent.putExtra("android.content.extra.SHOW_ADVANCED", true); intent.putExtra(Intent.EXTRA_TITLE, suggestedName); fragment.startActivityForResult(intent, requestCode); } @@ -134,6 +135,8 @@ public class FileHelper { Intent intent = new Intent(Intent.ACTION_OPEN_DOCUMENT); intent.addCategory(Intent.CATEGORY_OPENABLE); intent.setType(mimeType); + // Note: This is not documented, but works: Show the Internal Storage menu item in the drawer! + intent.putExtra("android.content.extra.SHOW_ADVANCED", true); intent.putExtra(Intent.EXTRA_ALLOW_MULTIPLE, multiple); fragment.startActivityForResult(intent, requestCode); } @@ -325,7 +328,4 @@ public class FileHelper { } } - public interface FileDialogCallback { - void onFileSelected(File file, boolean checked); - } } |