CB-7460: Fixing bug with KitKat where the background colour would override the CSS colours on the application

This commit is contained in:
Joe Bowser 2014-09-03 15:23:41 -07:00
parent 014327c59a
commit afdd16a214

View File

@ -248,10 +248,8 @@ public class CordovaActivity extends Activity implements CordovaInterface {
root.addView((View) appView);
setContentView(root);
// 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);
}
/**