Specify initial dir for file selection

This commit is contained in:
M66B 2020-03-19 11:00:12 +01:00
parent 40eeec5eba
commit 5dc87d7fee
1 changed files with 3 additions and 0 deletions

View File

@ -44,6 +44,7 @@ import android.os.LocaleList;
import android.os.Parcel;
import android.os.PowerManager;
import android.os.StatFs;
import android.provider.DocumentsContract;
import android.security.KeyChain;
import android.security.KeyChainAliasCallback;
import android.security.KeyChainException;
@ -923,6 +924,8 @@ public class Helper {
intent.putExtra("android.content.extra.FANCY", true);
intent.putExtra("android.content.extra.SHOW_FILESIZE", true);
intent.putExtra("android.provider.extra.SHOW_ADVANCED", true);
File initial = Environment.getExternalStorageDirectory();
intent.putExtra(DocumentsContract.EXTRA_INITIAL_URI, Uri.fromFile(initial));
}
// Cryptography