Created
October 22, 2015 01:03
-
-
Save dranes/032fa9525c0a39ad82ab to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private class MyWebViewClient extends WebViewClient { | |
@Override | |
public boolean shouldOverrideUrlLoading(WebView view, String url) { | |
String lastPathSegment = Uri.parse(url).getLastPathSegment(); | |
if(lastPathSegment.equals("login")) { | |
MainActivity.this.loginFacebook(); | |
return true; | |
} else { | |
return false; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment