2528: Do not remove notifications on general resume (#3312)
* 2528: Do not remove notifications on general resume * 2528: Have notification removal in the right onResume
This commit is contained in:
parent
f2b07196e6
commit
4ab305f3dc
3 changed files with 6 additions and 6 deletions
|
|
@ -63,6 +63,7 @@ import com.keylesspalace.tusky.appstore.FavoriteEvent;
|
|||
import com.keylesspalace.tusky.appstore.PinEvent;
|
||||
import com.keylesspalace.tusky.appstore.PreferenceChangedEvent;
|
||||
import com.keylesspalace.tusky.appstore.ReblogEvent;
|
||||
import com.keylesspalace.tusky.components.notifications.NotificationHelper;
|
||||
import com.keylesspalace.tusky.databinding.FragmentTimelineNotificationsBinding;
|
||||
import com.keylesspalace.tusky.db.AccountEntity;
|
||||
import com.keylesspalace.tusky.db.AccountManager;
|
||||
|
|
@ -1210,6 +1211,9 @@ public class NotificationsFragment extends SFragment implements
|
|||
@Override
|
||||
public void onResume() {
|
||||
super.onResume();
|
||||
|
||||
NotificationHelper.clearNotificationsForActiveAccount(requireContext(), accountManager);
|
||||
|
||||
String rawAccountNotificationFilter = accountManager.getActiveAccount().getNotificationsFilter();
|
||||
Set<Notification.Type> accountNotificationFilter = NotificationTypeConverterKt.deserialize(rawAccountNotificationFilter);
|
||||
if (!notificationFilter.equals(accountNotificationFilter)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue