Merge pull request #4657 from ByteHamster/add-error-message
Add error message when system file manager is not available
This commit is contained in:
commit
55c6da74cc
|
@ -88,7 +88,9 @@ public class AddFeedFragment extends Fragment {
|
|||
intentGetContentAction.setType("*/*");
|
||||
startActivityForResult(intentGetContentAction, REQUEST_CODE_CHOOSE_OPML_IMPORT_PATH);
|
||||
} catch (ActivityNotFoundException e) {
|
||||
Log.e(TAG, "No activity found. Should never happen...");
|
||||
e.printStackTrace();
|
||||
((MainActivity) getActivity())
|
||||
.showSnackbarAbovePlayer(R.string.unable_to_start_system_file_manager, Snackbar.LENGTH_LONG);
|
||||
}
|
||||
});
|
||||
root.findViewById(R.id.btn_add_local_folder).setOnClickListener(v -> {
|
||||
|
@ -100,7 +102,9 @@ public class AddFeedFragment extends Fragment {
|
|||
intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
|
||||
startActivityForResult(intent, REQUEST_CODE_ADD_LOCAL_FOLDER);
|
||||
} catch (ActivityNotFoundException e) {
|
||||
Log.e(TAG, "No activity found. Should never happen...");
|
||||
e.printStackTrace();
|
||||
((MainActivity) getActivity())
|
||||
.showSnackbarAbovePlayer(R.string.unable_to_start_system_file_manager, Snackbar.LENGTH_LONG);
|
||||
}
|
||||
});
|
||||
if (Build.VERSION.SDK_INT < 21) {
|
||||
|
|
|
@ -745,6 +745,7 @@
|
|||
<string name="reconnect_local_folder">Re-connect local folder</string>
|
||||
<string name="reconnect_local_folder_warning">In case of permission denials, you can use this to re-connect to the exact same folder. Do not select another folder.</string>
|
||||
<string name="local_feed_description">This virtual podcast was created by adding a folder to AntennaPod.</string>
|
||||
<string name="unable_to_start_system_file_manager">Unable to start system file manager</string>
|
||||
|
||||
<string name="filter">Filter</string>
|
||||
|
||||
|
|
Loading…
Reference in New Issue