internal virtual void ResetItem() { if (ListView.SelectedItem is not null) { (ListView.SelectedItem as Noti).UpdateTime(); NotiManager.UpdateNotisTime(); Utils.RefreshCollectionView(ListView, Notis); } }
private void UpdateNotis() { if (Preferences.Get(SettingConstants.NOTI_ENABLED, false)) { NotiManager notiManager = type switch { RealmEnv.RealmType.Currency => new RealmCurrencyNotiManager(), RealmEnv.RealmType.Friendship => new RealmFriendshipNotiManager(), _ => null }; notiManager?.UpdateNotisTime(); } }