mirror of
https://github.com/apache/cordova-android.git
synced 2025-04-22 16:50:45 +08:00
CB-7460: Fixing bug with KitKat where the background colour would override the CSS colours on the application
This commit is contained in:
parent
5a82dd5110
commit
4dc32e194b
@ -248,10 +248,8 @@ public class CordovaActivity extends Activity implements CordovaInterface {
|
|||||||
root.addView((View) appView);
|
root.addView((View) appView);
|
||||||
setContentView(root);
|
setContentView(root);
|
||||||
|
|
||||||
// TODO: Setting this on the appView causes it to show when <html style="opacity:0">.
|
|
||||||
int backgroundColor = preferences.getInteger("BackgroundColor", Color.BLACK);
|
int backgroundColor = preferences.getInteger("BackgroundColor", Color.BLACK);
|
||||||
root.setBackgroundColor(backgroundColor);
|
root.setBackgroundColor(backgroundColor);
|
||||||
appView.setBackgroundColor(backgroundColor);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user