Remove uri from pending even when already added
This commit is contained in:
@@ -247,10 +247,10 @@ public class EncryptFilesFragment
|
|||||||
try {
|
try {
|
||||||
mFilesAdapter.add(inputUri);
|
mFilesAdapter.add(inputUri);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
|
String fileName = FileHelper.getFilename(getActivity(), inputUri);
|
||||||
Notify.create(getActivity(),
|
Notify.create(getActivity(),
|
||||||
getActivity().getString(R.string.error_file_added_already, FileHelper.getFilename(getActivity(), inputUri)),
|
getActivity().getString(R.string.error_file_added_already, fileName),
|
||||||
Notify.Style.ERROR).show(this);
|
Notify.Style.ERROR).show(this);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// remove from pending input uris
|
// remove from pending input uris
|
||||||
|
|||||||
Reference in New Issue
Block a user