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){
|
public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){
|
||||||
inflater.inflate(R.menu.notifications, menu);
|
inflater.inflate(R.menu.notifications, menu);
|
||||||
markAllReadItem=menu.findItem(R.id.mark_all_read);
|
markAllReadItem=menu.findItem(R.id.mark_all_read);
|
||||||
updateMarkAllReadButton();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -330,7 +329,6 @@ public class NotificationsListFragment extends BaseStatusListFragment<Notificati
|
||||||
new SaveMarkers(null, id).exec(accountID);
|
new SaveMarkers(null, id).exec(accountID);
|
||||||
AccountSessionManager.get(accountID).setNotificationsMarker(id, true);
|
AccountSessionManager.get(accountID).setNotificationsMarker(id, true);
|
||||||
realUnreadMarker=id;
|
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
|
@Override
|
||||||
public void onAppendItems(List<Notification> items){
|
public void onAppendItems(List<Notification> items){
|
||||||
super.onAppendItems(items);
|
super.onAppendItems(items);
|
||||||
|
|
Loading…
Reference in New Issue