Enable encrypted files to be selected for importing
This commit is contained in:
@ -298,7 +298,11 @@ public abstract class DataShipFragment extends Fragment {
|
|||||||
@Override
|
@Override
|
||||||
public void onClick(View view) {
|
public void onClick(View view) {
|
||||||
Intent i = new Intent(Intent.ACTION_GET_CONTENT);
|
Intent i = new Intent(Intent.ACTION_GET_CONTENT);
|
||||||
i.setType("text/plain");
|
if (mPassword.getText().toString().isEmpty()) {
|
||||||
|
i.setType("text/plain");
|
||||||
|
} else {
|
||||||
|
i.setType("*/*");
|
||||||
|
}
|
||||||
i.addCategory(Intent.CATEGORY_OPENABLE);
|
i.addCategory(Intent.CATEGORY_OPENABLE);
|
||||||
try {
|
try {
|
||||||
startActivityForResult(i, SELECT_IMPORT_FILE);
|
startActivityForResult(i, SELECT_IMPORT_FILE);
|
||||||
|
Reference in New Issue
Block a user