This commit is contained in:
Bryce Curtis 2012-05-14 22:18:01 -05:00
parent 3829df665f
commit e6aa64760e

View File

@ -251,8 +251,14 @@ public class DroidGap extends Activity implements CordovaInterface {
getWindow().requestFeature(Window.FEATURE_NO_TITLE); getWindow().requestFeature(Window.FEATURE_NO_TITLE);
// TODO @bc - What about fullscreen?
//if (preferences.prefMatches("fullscreen", "true")) {
// getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
// WindowManager.LayoutParams.FLAG_FULLSCREEN);
//} else {
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN, getWindow().setFlags(WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN); WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN);
//}
// This builds the view. We could probably get away with NOT having a LinearLayout, but I like having a bucket! // This builds the view. We could probably get away with NOT having a LinearLayout, but I like having a bucket!
Display display = getWindowManager().getDefaultDisplay(); Display display = getWindowManager().getDefaultDisplay();
@ -400,6 +406,7 @@ public class DroidGap extends Activity implements CordovaInterface {
* Cancel loadUrl before it has been loaded. * Cancel loadUrl before it has been loaded.
*/ */
// TODO NO-OP // TODO NO-OP
@Deprecated
public void cancelLoadUrl() { public void cancelLoadUrl() {
this.cancelLoadUrl = true; this.cancelLoadUrl = true;
} }
@ -639,9 +646,7 @@ public class DroidGap extends Activity implements CordovaInterface {
} }
// Resume JavaScript timers (including setInterval) // Resume JavaScript timers (including setInterval)
if (this.appView.pluginManager != null) { this.appView.resumeTimers();
this.appView.resumeTimers();
}
} }
} }