CB-7159: Fix setBackgroundColor() call to support 4.0.x view classes

This commit is contained in:
Ian Clelland 2014-08-11 13:25:21 -04:00
parent 5054b714e2
commit f9b8f9a45f

View File

@ -213,7 +213,7 @@ public class CordovaActivity extends Activity implements CordovaInterface {
// TODO: Setting this on the appView causes it to show when <html style="opacity:0">.
int backgroundColor = preferences.getInteger("BackgroundColor", Color.BLACK);
root.setBackgroundColor(backgroundColor);
appView.setBackgroundColor(backgroundColor);
appView.getView().setBackgroundColor(backgroundColor);
}
/**