guard unregister phone account by system feature check

This commit is contained in:
Daniel Gultsch 2024-05-02 10:58:40 +02:00
parent 60e6841578
commit cbd8fb3488
No known key found for this signature in database
GPG key ID: F43D18AD2A0982C2

View file

@ -2751,7 +2751,9 @@ public class XmppConnectionService extends Service {
}; };
mDatabaseWriterExecutor.execute(runnable); mDatabaseWriterExecutor.execute(runnable);
this.accounts.remove(account); this.accounts.remove(account);
if (CallIntegration.hasSystemFeature(this)) {
CallIntegrationConnectionService.unregisterPhoneAccount(this, account); CallIntegrationConnectionService.unregisterPhoneAccount(this, account);
}
this.mRosterSyncTaskManager.clear(account); this.mRosterSyncTaskManager.clear(account);
updateAccountUi(); updateAccountUi();
mNotificationService.updateErrorNotification(); mNotificationService.updateErrorNotification();