mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-20 23:56:20 +08:00
CB-7159 Set background color of webView as well as its parent
github: close #109, close #110
This commit is contained in:
parent
cd6c0e1de9
commit
67f474ef42
@ -249,6 +249,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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user