Permalink
Browse files

support new intel URL

  • Loading branch information...
terencehonles committed Oct 30, 2018
1 parent 0fabfb6 commit 9638e94e9aab516b1f00e61b1b628480ddaf6fc9
Showing with 6 additions and 12 deletions.
  1. +4 −4 mobile/AndroidManifest.xml
  2. +2 −8 mobile/src/com/cradle/iitc_mobile/IITC_WebViewClient.java
@@ -69,19 +69,19 @@
android:pathPrefix="/mission/"
android:scheme="http"/>
<data
android:host="www.ingress.com"
android:host="*.ingress.com"
android:pathPrefix="/intel"
android:scheme="https"/>
<data
android:host="www.ingress.com"
android:host="*.ingress.com"
android:pathPrefix="/intel"
android:scheme="http"/>
<data
android:host="www.ingress.com"
android:host="*.ingress.com"
android:pathPrefix="/mission/"
android:scheme="https"/>
<data
android:host="www.ingress.com"
android:host="*.ingress.com"
android:pathPrefix="/mission/"
android:scheme="http"/>
</intent-filter>
@@ -35,14 +35,8 @@

public static final boolean isIntelUrl(String url) {
return
url.startsWith("http://ingress.com/intel") ||
url.startsWith("https://ingress.com/intel") ||
url.startsWith("http://ingress.com/mission/") ||
url.startsWith("https://ingress.com/mission/") ||
url.startsWith("http://www.ingress.com/intel") ||
url.startsWith("https://www.ingress.com/intel") ||
url.startsWith("http://www.ingress.com/mission/") ||
url.startsWith("https://www.ingress.com/mission/");
url.matches("^https?://(?:.*\\.)?ingress\\.com/intel.*") ||
url.matches("^https?://(?:.*\\.)?ingress\\.com/mission.*");
}

private final IITC_Mobile mIitc;

0 comments on commit 9638e94

Please sign in to comment.