reload after plugin with the reload-method to stay consistent with the action bar

This commit is contained in:
Philipp Schaefer 2013-06-15 12:49:26 +02:00
parent ebfa030c3d
commit f8cd22f162
2 changed files with 4 additions and 2 deletions

View File

@ -369,6 +369,8 @@ public class IITC_Mobile extends Activity {
actionBar.setTitle(getString(R.string.app_name));
backStack.clear();
setActionBarHomeEnabledWithUp(false);
// iitc starts on map after reload
currentPane = android.R.id.home;
this.loadUrl(intel_url);
return true;
case R.id.toggle_fullscreen:

View File

@ -147,9 +147,9 @@ public class IITC_WebViewClient extends WebViewClient {
@Override
public void onPageFinished(WebView view, String url) {
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);
main_activity.loadUrl(main_activity.intel_url);
main_activity.handleMenuItemSelected(R.id.reload_button);
return;
}
super.onPageFinished(view, url);