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 {
DroidGap mAction;
boolean bound;
WebView mView;
BrowserKey(WebView view, DroidGap action)

View File

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

View File

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