mirror of
https://github.com/apache/cordova-plugin-statusbar.git
synced 2026-04-27 00:00:06 +08:00
deprecate blacktranslucent, blackopaque, styleBlackTranslucent and styleBlackOpaque (#173)
This commit is contained in:
@@ -63,7 +63,11 @@ public class StatusBar extends CordovaPlugin {
|
||||
setStatusBarBackgroundColor(preferences.getString("StatusBarBackgroundColor", "#000000"));
|
||||
|
||||
// Read 'StatusBarStyle' from config.xml, default is 'lightcontent'.
|
||||
setStatusBarStyle(preferences.getString("StatusBarStyle", "lightcontent"));
|
||||
String styleSetting = preferences.getString("StatusBarStyle", "lightcontent");
|
||||
if (styleSetting.equalsIgnoreCase("blacktranslucent") || styleSetting.equalsIgnoreCase("blackopaque")) {
|
||||
LOG.w(TAG, styleSetting +" is deprecated and will be removed in next major release, use lightcontent");
|
||||
}
|
||||
setStatusBarStyle(styleSetting);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user