mobile: concentrate on ingress.com urls instead of ingress.com/intel urls, otherwise the login does not work
This commit is contained in:
parent
f80c30cf36
commit
c28cf395b7
@ -118,10 +118,10 @@ public class IITC_WebViewClient extends WebViewClient {
|
|||||||
// start non-ingress-intel-urls in another app...
|
// start non-ingress-intel-urls in another app...
|
||||||
@Override
|
@Override
|
||||||
public boolean shouldOverrideUrlLoading(WebView view, String url) {
|
public boolean shouldOverrideUrlLoading(WebView view, String url) {
|
||||||
if (url.contains("ingress.com/intel")) {
|
if (url.contains("ingress.com")) {
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
Log.d("iitcm", "no ingress intel link, start external app to load url");
|
Log.d("iitcm", "no ingress intel link, start external app to load url: " + url);
|
||||||
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
|
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
|
||||||
context.startActivity(intent);
|
context.startActivity(intent);
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user