Always allow marking notifications as read
This commit is contained in:
parent
f5b98009dd
commit
02729fe02b
|
@ -312,7 +312,6 @@ public class NotificationsListFragment extends BaseStatusListFragment<Notificati
|
|||
public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){
|
||||
inflater.inflate(R.menu.notifications, menu);
|
||||
markAllReadItem=menu.findItem(R.id.mark_all_read);
|
||||
updateMarkAllReadButton();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -330,7 +329,6 @@ public class NotificationsListFragment extends BaseStatusListFragment<Notificati
|
|||
new SaveMarkers(null, id).exec(accountID);
|
||||
AccountSessionManager.get(accountID).setNotificationsMarker(id, true);
|
||||
realUnreadMarker=id;
|
||||
updateMarkAllReadButton();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -348,10 +346,6 @@ public class NotificationsListFragment extends BaseStatusListFragment<Notificati
|
|||
});
|
||||
}
|
||||
|
||||
private void updateMarkAllReadButton(){
|
||||
markAllReadItem.setEnabled(!data.isEmpty() && realUnreadMarker!=null && !realUnreadMarker.equals(data.get(0).id));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onAppendItems(List<Notification> items){
|
||||
super.onAppendItems(items);
|
||||
|
|
Loading…
Reference in New Issue