mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-07 23:03:11 +08:00
CB-4620: Throwing this over the fence, since there is a problem actually in the wild here
This commit is contained in:
parent
3351fdbc74
commit
39d32bcb5b
@ -22,12 +22,13 @@ package __ID__;
|
|||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import org.apache.cordova.*;
|
import org.apache.cordova.*;
|
||||||
|
|
||||||
public class __ACTIVITY__ extends DroidGap
|
public class __ACTIVITY__ extends CordovaActivity
|
||||||
{
|
{
|
||||||
@Override
|
@Override
|
||||||
public void onCreate(Bundle savedInstanceState)
|
public void onCreate(Bundle savedInstanceState)
|
||||||
{
|
{
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
super.init();
|
||||||
// Set by <content src="index.html" /> in config.xml
|
// Set by <content src="index.html" /> in config.xml
|
||||||
super.loadUrl(Config.getStartUrl());
|
super.loadUrl(Config.getStartUrl());
|
||||||
//super.loadUrl("file:///android_asset/www/index.html")
|
//super.loadUrl("file:///android_asset/www/index.html")
|
||||||
|
@ -413,9 +413,12 @@ public class CordovaActivity extends Activity implements CordovaInterface {
|
|||||||
// If keepRunning
|
// If keepRunning
|
||||||
this.keepRunning = this.getBooleanProperty("KeepRunning", true);
|
this.keepRunning = this.getBooleanProperty("KeepRunning", true);
|
||||||
|
|
||||||
// Then load the spinner
|
//Check if the view is attached to anything
|
||||||
this.loadSpinner();
|
if(appView.getParent() != null)
|
||||||
|
{
|
||||||
|
// Then load the spinner
|
||||||
|
this.loadSpinner();
|
||||||
|
}
|
||||||
//Load the correct splashscreen
|
//Load the correct splashscreen
|
||||||
|
|
||||||
if(this.splashscreen != 0)
|
if(this.splashscreen != 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user