@SuppressWarnings("ConstantConditions")
private void checkSingleton() {
if (ThemeSingleton.get(false) == null) {
return;
}
ThemeSingleton s = ThemeSingleton.get();
if (s.darkTheme) {
this.theme = Theme.DARK;
}
if (s.titleColor != 0) {
this.titleColor = s.titleColor;
}
if (s.contentColor != 0) {
this.contentColor = s.contentColor;
}
if (s.positiveColor != null) {
this.positiveColor = s.positiveColor;
}
if (s.neutralColor != null) {
this.neutralColor = s.neutralColor;
}
if (s.negativeColor != null) {
this.negativeColor = s.negativeColor;
}
if (s.itemColor != 0) {
this.itemColor = s.itemColor;
}
if (s.icon != null) {
this.icon = s.icon;
}
if (s.backgroundColor != 0) {
this.backgroundColor = s.backgroundColor;
}
if (s.dividerColor != 0) {
this.dividerColor = s.dividerColor;
}
if (s.btnSelectorStacked != 0) {
this.btnSelectorStacked = s.btnSelectorStacked;
}
if (s.listSelector != 0) {
this.listSelector = s.listSelector;
}
if (s.btnSelectorPositive != 0) {
this.btnSelectorPositive = s.btnSelectorPositive;
}
if (s.btnSelectorNeutral != 0) {
this.btnSelectorNeutral = s.btnSelectorNeutral;
}
if (s.btnSelectorNegative != 0) {
this.btnSelectorNegative = s.btnSelectorNegative;
}
if (s.widgetColor != 0) {
this.widgetColor = s.widgetColor;
}
if (s.linkColor != null) {
this.linkColor = s.linkColor;
}
this.titleGravity = s.titleGravity;
this.contentGravity = s.contentGravity;
this.btnStackedGravity = s.btnStackedGravity;
this.itemsGravity = s.itemsGravity;
this.buttonsGravity = s.buttonsGravity;
}
MaterialDialog.java 文件源码
java
阅读 32
收藏 0
点赞 0
评论 0
项目:material-dialogs
作者:
评论列表
文章目录