CB-4620: Throwing this over the fence, since there is a problem actually in the wild here

This commit is contained in:
Joe Bowser 2013-09-11 15:02:00 -07:00
parent 3351fdbc74
commit 39d32bcb5b
2 changed files with 8 additions and 4 deletions

View File

@ -22,12 +22,13 @@ package __ID__;
import android.os.Bundle;
import org.apache.cordova.*;
public class __ACTIVITY__ extends DroidGap
public class __ACTIVITY__ extends CordovaActivity
{
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
super.init();
// Set by <content src="index.html" /> in config.xml
super.loadUrl(Config.getStartUrl());
//super.loadUrl("file:///android_asset/www/index.html")

View File

@ -413,9 +413,12 @@ public class CordovaActivity extends Activity implements CordovaInterface {
// If keepRunning
this.keepRunning = this.getBooleanProperty("KeepRunning", true);
// Then load the spinner
this.loadSpinner();
//Check if the view is attached to anything
if(appView.getParent() != null)
{
// Then load the spinner
this.loadSpinner();
}
//Load the correct splashscreen
if(this.splashscreen != 0)