reload page after login
This commit is contained in:
		| @@ -140,9 +140,21 @@ public class IITC_WebViewClient extends WebViewClient { | ||||
|      */ | ||||
|     @Override | ||||
|     public void onReceivedLoginRequest(WebView view, String realm, String account, String args) { | ||||
|         Log.d("iitcm", "Login requested: " + realm + " " + account + " " + args); | ||||
|         ((IITC_Mobile) context).onReceivedLoginRequest(this, view, realm, account, args); | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     public void onPageFinished(WebView view, String url) { | ||||
|         if (url.contains("accounts.google.com")) { | ||||
|             Log.d("iitcm", "reload after login"); | ||||
|             IITC_Mobile main_activity = ((IITC_Mobile) context); | ||||
|             main_activity.loadUrl(main_activity.intel_url); | ||||
|             return; | ||||
|         } | ||||
|         super.onPageFinished(view, url); | ||||
|     } | ||||
|  | ||||
|     // parse all enabled iitc plugins | ||||
|     // returns a string containing all plugins without their wrappers | ||||
|     public String parsePlugins() { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user