Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Rebase fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
keianhzo committed Apr 9, 2020
1 parent 2d4ec55 commit 939fcc3
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,12 @@ public static Boolean isDataUri(@Nullable String aUri) {
return aUri != null && aUri.startsWith("data");
}

public static Boolean isFileUri(@NonNull String aUri) {
return aUri.startsWith("file");
public static Boolean isFileUri(@Nullable String aUri) {
return aUri != null && aUri.startsWith("file");
}

public static Boolean isBlankUri(@NonNull Context context, @NonNull String aUri) {
return aUri.equals(context.getString(R.string.about_blank));
public static Boolean isBlankUri(@Nullable Context context, @Nullable String aUri) {
return context != null && aUri != null && aUri.equals(context.getString(R.string.about_blank));
}

public static String titleBarUrl(@Nullable String aUri) {
Expand Down

0 comments on commit 939fcc3

Please sign in to comment.