mirror of
https://github.com/apache/cordova-android.git
synced 2026-02-21 00:02:46 +08:00
Updates.
This commit is contained in:
@@ -251,8 +251,14 @@ public class DroidGap extends Activity implements CordovaInterface {
|
||||
|
||||
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,
|
||||
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!
|
||||
Display display = getWindowManager().getDefaultDisplay();
|
||||
@@ -400,6 +406,7 @@ public class DroidGap extends Activity implements CordovaInterface {
|
||||
* Cancel loadUrl before it has been loaded.
|
||||
*/
|
||||
// TODO NO-OP
|
||||
@Deprecated
|
||||
public void cancelLoadUrl() {
|
||||
this.cancelLoadUrl = true;
|
||||
}
|
||||
@@ -639,9 +646,7 @@ public class DroidGap extends Activity implements CordovaInterface {
|
||||
}
|
||||
|
||||
// Resume JavaScript timers (including setInterval)
|
||||
if (this.appView.pluginManager != null) {
|
||||
this.appView.resumeTimers();
|
||||
}
|
||||
this.appView.resumeTimers();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user