mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-22 08:53:24 +08:00
Delete onReset and resetJsMessageQueue from CordovaWebView interface
These are implementation details that do not need to be exposed.
This commit is contained in:
parent
4ce5123a12
commit
d66bb84924
@ -1024,14 +1024,10 @@ public class AndroidWebView extends WebView implements CordovaWebView {
|
||||
return this.pluginManager.onOverrideUrlLoading(url);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void resetJsMessageQueue() {
|
||||
this.jsMessageQueue.reset();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onReset() {
|
||||
this.pluginManager.onReset();
|
||||
void onPageReset() {
|
||||
boundKeyCodes.clear();
|
||||
pluginManager.onReset();
|
||||
jsMessageQueue.reset();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -280,14 +280,11 @@ public class AndroidWebViewClient extends WebViewClient implements CordovaWebVie
|
||||
super.onPageStarted(view, url, favicon);
|
||||
isCurrentlyLoading = true;
|
||||
LOG.d(TAG, "onPageStarted(" + url + ")");
|
||||
// Flush stale messages.
|
||||
this.appView.resetJsMessageQueue();
|
||||
// Flush stale messages & reset plugins.
|
||||
this.appView.onPageReset();
|
||||
|
||||
// Broadcast message that page has loaded
|
||||
this.appView.postMessage("onPageStarted", url);
|
||||
|
||||
// Notify all plugins of the navigation, so they can clean up if necessary.
|
||||
this.appView.onReset();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -122,10 +122,6 @@ public interface CordovaWebView {
|
||||
|
||||
boolean onOverrideUrlLoading(String url);
|
||||
|
||||
void resetJsMessageQueue();
|
||||
|
||||
void onReset();
|
||||
|
||||
int getVisibility();
|
||||
|
||||
void incUrlTimeout();
|
||||
|
Loading…
Reference in New Issue
Block a user