mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-31 09:02:50 +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 {
|
||||
|
||||
DroidGap mAction;
|
||||
boolean bound;
|
||||
|
||||
WebView mView;
|
||||
|
||||
BrowserKey(WebView view, DroidGap action)
|
||||
|
@ -84,7 +84,7 @@ public class DroidGap extends Activity {
|
||||
private static final String LOG_TAG = "DroidGap";
|
||||
protected WebView appView;
|
||||
protected ImageView splashScreen;
|
||||
protected Boolean backdoor = false;
|
||||
protected Boolean loadInWebView = false;
|
||||
private LinearLayout root;
|
||||
|
||||
private Device gap;
|
||||
@ -537,7 +537,7 @@ public class DroidGap extends Activity {
|
||||
}
|
||||
|
||||
// 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);
|
||||
}
|
||||
|
||||
|
@ -201,7 +201,7 @@ class Create
|
||||
"
|
||||
code_dir = File.join(@path, "src", @pkg.gsub('.', File::SEPARATOR))
|
||||
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
|
||||
|
||||
# friendly output for now
|
||||
|
Loading…
Reference in New Issue
Block a user