mirror of
https://github.com/apache/cordova-android.git
synced 2025-05-14 07:10:40 +08:00
Make showWebPage() take a Map instead of a HashMap
This commit is contained in:
parent
7be600d8e9
commit
88f50a66ff
@ -21,9 +21,9 @@ package org.apache.cordova;
|
|||||||
|
|
||||||
import java.lang.reflect.InvocationTargetException;
|
import java.lang.reflect.InvocationTargetException;
|
||||||
import java.lang.reflect.Method;
|
import java.lang.reflect.Method;
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
import android.annotation.SuppressLint;
|
import android.annotation.SuppressLint;
|
||||||
import android.annotation.TargetApi;
|
import android.annotation.TargetApi;
|
||||||
@ -442,7 +442,7 @@ public class AndroidWebView extends WebView implements CordovaWebView {
|
|||||||
* @param clearHistory Clear the history stack, so new page becomes top of history
|
* @param clearHistory Clear the history stack, so new page becomes top of history
|
||||||
* @param params Parameters for new app
|
* @param params Parameters for new app
|
||||||
*/
|
*/
|
||||||
public void showWebPage(String url, boolean openExternal, boolean clearHistory, HashMap<String, Object> params) {
|
public void showWebPage(String url, boolean openExternal, boolean clearHistory, Map<String, Object> params) {
|
||||||
LOG.d(TAG, "showWebPage(%s, %b, %b, HashMap", url, openExternal, clearHistory);
|
LOG.d(TAG, "showWebPage(%s, %b, %b, HashMap", url, openExternal, clearHistory);
|
||||||
|
|
||||||
// If clearing history
|
// If clearing history
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
package org.apache.cordova;
|
package org.apache.cordova;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.Map;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
@ -63,7 +63,7 @@ public interface CordovaWebView {
|
|||||||
@Deprecated
|
@Deprecated
|
||||||
void sendJavascript(String statememt);
|
void sendJavascript(String statememt);
|
||||||
|
|
||||||
void showWebPage(String errorUrl, boolean b, boolean c, HashMap<String, Object> params);
|
void showWebPage(String errorUrl, boolean b, boolean c, Map<String, Object> params);
|
||||||
|
|
||||||
boolean isCustomViewShowing();
|
boolean isCustomViewShowing();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user