deprecate blacktranslucent, blackopaque, styleBlackTranslucent and styleBlackOpaque (#173)

This commit is contained in:
jcesarmobile
2020-03-21 13:59:48 +01:00
committed by GitHub
parent 24d5f278d0
commit 2928339611
4 changed files with 17 additions and 7 deletions
+5 -1
View File
@@ -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);
}
});
}