mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-31 17:32:51 +08:00
changed to loadInWebView
This commit is contained in:
parent
a6faa68a5c
commit
5c481ebe40
@ -10,12 +10,10 @@ import android.webkit.WebView;
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
public class BrowserKey {
|
public class BrowserKey {
|
||||||
|
|
||||||
DroidGap mAction;
|
DroidGap mAction;
|
||||||
boolean bound;
|
boolean bound;
|
||||||
|
|
||||||
WebView mView;
|
WebView mView;
|
||||||
|
|
||||||
BrowserKey(WebView view, DroidGap action)
|
BrowserKey(WebView view, DroidGap action)
|
||||||
|
@ -84,7 +84,7 @@ public class DroidGap extends Activity {
|
|||||||
private static final String LOG_TAG = "DroidGap";
|
private static final String LOG_TAG = "DroidGap";
|
||||||
protected WebView appView;
|
protected WebView appView;
|
||||||
protected ImageView splashScreen;
|
protected ImageView splashScreen;
|
||||||
protected Boolean backdoor = false;
|
protected Boolean loadInWebView = false;
|
||||||
private LinearLayout root;
|
private LinearLayout root;
|
||||||
|
|
||||||
private Device gap;
|
private Device gap;
|
||||||
@ -537,7 +537,7 @@ public class DroidGap extends Activity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// If our app or file:, then load into our webview
|
// If our app or file:, then load into our webview
|
||||||
if (backdoor || url.startsWith("file://") || mCtx.baseUrl.equals(newBaseUrl)) {
|
if (loadInWebView || url.startsWith("file://") || mCtx.baseUrl.equals(newBaseUrl)) {
|
||||||
appView.loadUrl(url);
|
appView.loadUrl(url);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -201,7 +201,7 @@ class Create
|
|||||||
"
|
"
|
||||||
code_dir = File.join(@path, "src", @pkg.gsub('.', File::SEPARATOR))
|
code_dir = File.join(@path, "src", @pkg.gsub('.', File::SEPARATOR))
|
||||||
FileUtils.mkdir_p(code_dir)
|
FileUtils.mkdir_p(code_dir)
|
||||||
open(File.join(code_dir, "#{ @name.gsub(' ','') }.java"),'w') { |f| f.puts j.gsub(' ','') }
|
open(File.join(code_dir, "#{ @name.gsub(' ','') }.java"),'w') { |f| f.puts j }
|
||||||
end
|
end
|
||||||
|
|
||||||
# friendly output for now
|
# friendly output for now
|
||||||
|
Loading…
Reference in New Issue
Block a user