Fixes a FP with bubble counters when scrolling down notifications/home timeline

This commit is contained in:
tom79 2017-08-27 17:17:52 +02:00
parent f3d7a36023
commit 3c00646541
2 changed files with 2 additions and 2 deletions

View File

@ -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()){

View File

@ -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()){