diff --git a/mobile/android/base/java/org/mozilla/gecko/AboutPages.java b/mobile/android/base/java/org/mozilla/gecko/AboutPages.java index 4db20df18374..3969d709dbd5 100644 --- a/mobile/android/base/java/org/mozilla/gecko/AboutPages.java +++ b/mobile/android/base/java/org/mozilla/gecko/AboutPages.java @@ -39,6 +39,13 @@ public class AboutPages { PRIVATEBROWSING.equals(url); } + public static final boolean isDefaultHomePage(final String url) { + if (url == null) { + return false; + } + return HOME.equals(url); + } + public static final boolean isAboutHome(final String url) { if (url == null || !url.startsWith(HOME)) { return false; diff --git a/mobile/android/base/java/org/mozilla/gecko/GeckoApp.java b/mobile/android/base/java/org/mozilla/gecko/GeckoApp.java index d0925b6c4563..8d3ef125e5c5 100644 --- a/mobile/android/base/java/org/mozilla/gecko/GeckoApp.java +++ b/mobile/android/base/java/org/mozilla/gecko/GeckoApp.java @@ -1466,7 +1466,7 @@ public abstract class GeckoApp extends GeckoActivity final String passedUri = getIntentURI(intent); final boolean intentHasURL = passedUri != null; - final boolean isAboutHomeURL = intentHasURL && AboutPages.isAboutHome(passedUri); + final boolean isAboutHomeURL = intentHasURL && AboutPages.isDefaultHomePage(passedUri); final boolean isAssistIntent = Intent.ACTION_ASSIST.equals(action); final boolean needsNewForegroundTab = intentHasURL || isAssistIntent;