reload after plugin with the reload-method to stay consistent with the action bar
This commit is contained in:
parent
ebfa030c3d
commit
f8cd22f162
@ -369,6 +369,8 @@ public class IITC_Mobile extends Activity {
|
|||||||
actionBar.setTitle(getString(R.string.app_name));
|
actionBar.setTitle(getString(R.string.app_name));
|
||||||
backStack.clear();
|
backStack.clear();
|
||||||
setActionBarHomeEnabledWithUp(false);
|
setActionBarHomeEnabledWithUp(false);
|
||||||
|
// iitc starts on map after reload
|
||||||
|
currentPane = android.R.id.home;
|
||||||
this.loadUrl(intel_url);
|
this.loadUrl(intel_url);
|
||||||
return true;
|
return true;
|
||||||
case R.id.toggle_fullscreen:
|
case R.id.toggle_fullscreen:
|
||||||
|
@ -147,9 +147,9 @@ public class IITC_WebViewClient extends WebViewClient {
|
|||||||
@Override
|
@Override
|
||||||
public void onPageFinished(WebView view, String url) {
|
public void onPageFinished(WebView view, String url) {
|
||||||
if (url.contains("accounts.google.com")) {
|
if (url.contains("accounts.google.com")) {
|
||||||
Log.d("iitcm", "reload after login");
|
Log.d("iitcm", "reload after login/logout");
|
||||||
IITC_Mobile main_activity = ((IITC_Mobile) context);
|
IITC_Mobile main_activity = ((IITC_Mobile) context);
|
||||||
main_activity.loadUrl(main_activity.intel_url);
|
main_activity.handleMenuItemSelected(R.id.reload_button);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
super.onPageFinished(view, url);
|
super.onPageFinished(view, url);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user