Merge pull request #3283 from deltachat/adb/fix-typo-in-notificationcenter

fix typo in NotificationCenter
This commit is contained in:
Asiel Díaz Benítez
2024-09-10 19:35:15 +02:00
committed by GitHub
3 changed files with 3 additions and 3 deletions
@@ -262,7 +262,7 @@ public class ConversationListActivity extends PassphraseRequiredActionBarActivit
DcContext dcContext = DcHelper.getContext(this);
int accountId = getIntent().getIntExtra(ACCOUNT_ID_EXTRA, dcContext.getAccountId());
if (getIntent().getBooleanExtra(CLEAR_NOTIFICATIONS, false)) {
DcHelper.getNotificationCenter(this).removeAllNotifiations(accountId);
DcHelper.getNotificationCenter(this).removeAllNotifications(accountId);
}
if (accountId != dcContext.getAccountId()) {
AccountManager.getInstance().switchAccountAndStartActivity(this, accountId);
@@ -119,7 +119,7 @@ public class AccountSelectionListFragment extends DialogFragment
.setNegativeButton(R.string.cancel, (d, which) -> AccountManager.getInstance().showSwitchAccountMenu(activity))
.setPositiveButton(R.string.delete, (d2, which2) -> {
boolean selected = accountId == accounts.getSelectedAccount().getAccountId();
DcHelper.getNotificationCenter(activity).removeAllNotifiations(accountId);
DcHelper.getNotificationCenter(activity).removeAllNotifications(accountId);
accounts.removeAccount(accountId);
if (selected) {
DcContext selAcc = accounts.getSelectedAccount();
@@ -565,7 +565,7 @@ public class NotificationCenter {
} catch (Exception e) { Log.w(TAG, e); }
}
public void removeAllNotifiations(int accountId) {
public void removeAllNotifications(int accountId) {
NotificationManagerCompat notificationManager = NotificationManagerCompat.from(context);
String tag = String.valueOf(accountId);
synchronized (inboxes) {