Skip to content

Commit

Permalink
Add requiresNonNull to LoveDocumentsProvider.
Browse files Browse the repository at this point in the history
  • Loading branch information
MikuAuahDark committed Sep 28, 2023
1 parent 26a45e4 commit 90dd5df
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
import java.util.Comparator;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.Objects;
import java.util.PriorityQueue;
import java.util.Set;

Expand Down Expand Up @@ -95,7 +96,7 @@ public class LoveDocumentsProvider extends DocumentsProvider {
public boolean onCreate() {
Log.v(TAG, "onCreate");

mBaseDir = getContext().getExternalFilesDir(null);
mBaseDir = Objects.requireNonNull(getContext()).getExternalFilesDir(null);
return true;
}

Expand Down

0 comments on commit 90dd5df

Please sign in to comment.