changed to loadInWebView

This commit is contained in:
brianleroux 2010-09-02 12:54:35 -07:00
parent a6faa68a5c
commit 5c481ebe40
3 changed files with 3 additions and 5 deletions

View File

@ -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)

View File

@ -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);
} }

View File

@ -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