Calendar: retain name

pull/212/head
M66B 2 years ago
parent 1355a54349
commit 00e9266a21

@ -152,14 +152,14 @@ public class FragmentDialogCalendar extends FragmentDialogBase {
this.type = type; this.type = type;
this.primary = primary; this.primary = primary;
this.visible = visible; this.visible = visible;
this.name = (Objects.equals(account, name) ? null : name); this.name = name;
} }
String getTitle() { String getTitle() {
return (this.visible ? "" : "(") + return (this.visible ? "" : "(") +
(this.account == null ? "-" : this.account) + (this.account == null ? "-" : this.account) +
(BuildConfig.DEBUG && false ? ":" + (this.type == null ? "-" : this.type) : "") + (BuildConfig.DEBUG && false ? ":" + (this.type == null ? "-" : this.type) : "") +
(TextUtils.isEmpty(this.name) ? "" : ":" + this.name) + (TextUtils.isEmpty(this.name) || Objects.equals(this.account, this.name) ? "" : ":" + this.name) +
(this.visible ? "" : ")") + (this.visible ? "" : ")") +
" " + (this.primary ? "*" : ""); " " + (this.primary ? "*" : "");
} }

Loading…
Cancel
Save