Skip to content

Commit

Permalink
Annotate StoredFileHelper.createSAF() as NonNull
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiGr committed Jun 5, 2021
1 parent 7e3b345 commit f583dd4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/src/main/java/us/shandian/giga/io/StoredFileHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,9 @@ private void takePermissionSAF() throws IOException {
}
}

private DocumentFile createSAF(@Nullable Context context, String mime, String filename) throws IOException {
@NonNull
private DocumentFile createSAF(@Nullable Context context, String mime, String filename)
throws IOException {
DocumentFile res = StoredDirectoryHelper.findFileSAFHelper(context, docTree, filename);

if (res != null && res.exists() && res.isDirectory()) {
Expand Down

0 comments on commit f583dd4

Please sign in to comment.