Automatically activate show own account when adding further accounts
This commit is contained in:
parent
dc83ab2d55
commit
5fb087d443
1 changed files with 6 additions and 0 deletions
|
@ -3142,6 +3142,12 @@ public class XmppConnectionService extends Service {
|
||||||
CallIntegrationConnectionService.togglePhoneAccountAsync(this, account);
|
CallIntegrationConnectionService.togglePhoneAccountAsync(this, account);
|
||||||
}
|
}
|
||||||
this.accounts.add(account);
|
this.accounts.add(account);
|
||||||
|
// Activate show own account name when there is more than one account
|
||||||
|
if (accounts.size() > 1) {
|
||||||
|
final var editor = getPreferences().edit();
|
||||||
|
editor.putBoolean("show_own_accounts", true).apply();
|
||||||
|
editor.apply();
|
||||||
|
}
|
||||||
this.reconnectAccountInBackground(account);
|
this.reconnectAccountInBackground(account);
|
||||||
updateAccountUi();
|
updateAccountUi();
|
||||||
syncEnabledAccountSetting();
|
syncEnabledAccountSetting();
|
||||||
|
|
Loading…
Reference in a new issue