Fixes a FP with bubble counters when scrolling down notifications/home timeline
This commit is contained in:
parent
f3d7a36023
commit
3c00646541
|
@ -215,7 +215,7 @@ public class DisplayNotificationsFragment extends Fragment implements OnRetrieve
|
|||
if( refreshData ) {
|
||||
manageNotifications(notifications, max_id, since_id);
|
||||
//The current tab is displayed, so user is supposed to have seen the notifications
|
||||
if( since_id != null && displayNotificationsFragment.getUserVisibleHint()) {
|
||||
if( since_id != null && displayNotificationsFragment.getUserVisibleHint() && firstLoad) {
|
||||
editor.putString(Helper.LAST_MAX_ID_BUBBLE_NOTIF + userId, since_id);
|
||||
editor.apply();
|
||||
}else if(!displayNotificationsFragment.getUserVisibleHint()){
|
||||
|
|
|
@ -327,7 +327,7 @@ public class DisplayStatusFragment extends Fragment implements OnRetrieveFeedsIn
|
|||
|
||||
manageStatus(statuses, max_id, since_id);
|
||||
//The current tab is displayed, so user is supposed to have seen status
|
||||
if( since_id != null && displayStatusFragment.getUserVisibleHint()) {
|
||||
if( since_id != null && displayStatusFragment.getUserVisibleHint() && firstLoad) {
|
||||
editor.putString(Helper.LAST_MAX_ID_BUBBLE_HOME + userId, since_id);
|
||||
editor.apply();
|
||||
}else if(!displayStatusFragment.getUserVisibleHint()){
|
||||
|
|
Loading…
Reference in New Issue