mirror of
https://github.com/apache/cordova-android.git
synced 2025-04-05 22:41:53 +08:00
Redirect Issue
This commit is contained in:
parent
c9d4276207
commit
900ff9ed2c
@ -183,6 +183,8 @@ public class CordovaWebViewClient extends WebViewClient {
|
||||
|
||||
@Override
|
||||
public void onPageStarted(WebView view, String url, Bitmap favicon) {
|
||||
Log.d("CordovaWebViewClient", "I got a page started for = " + url);
|
||||
Log.d("CordovaWebViewClient", "can go back " + view.canGoBack());
|
||||
|
||||
// Clear history so history.back() doesn't do anything.
|
||||
// So we can reinit() native side CallbackServer & PluginManager.
|
||||
@ -198,6 +200,7 @@ public class CordovaWebViewClient extends WebViewClient {
|
||||
*/
|
||||
@Override
|
||||
public void onPageFinished(WebView view, String url) {
|
||||
Log.d("CordovaWebViewClient", "I got a page finished for = " + url);
|
||||
super.onPageFinished(view, url);
|
||||
|
||||
/**
|
||||
|
@ -55,6 +55,7 @@ import android.media.AudioManager;
|
||||
import android.net.Uri;
|
||||
import android.net.http.SslError;
|
||||
import android.os.Bundle;
|
||||
import android.util.Log;
|
||||
import android.view.Display;
|
||||
import android.view.KeyEvent;
|
||||
import android.view.Menu;
|
||||
@ -671,6 +672,12 @@ public class DroidGap extends Activity implements CordovaInterface {
|
||||
* Clear web history in this web view.
|
||||
*/
|
||||
public void clearHistory() {
|
||||
Log.d("DroidGap", "*****************");
|
||||
Log.d("DroidGap", "*****************");
|
||||
Log.d("DroidGap", "*****************");
|
||||
Log.d("DroidGap", "In DroidGap clearHistory");
|
||||
Log.d("DroidGap", "The size of urls is = " + this.urls.size());
|
||||
|
||||
this.urls.clear();
|
||||
this.appView.clearHistory();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user