Fixes a crash when a timeline or thread is backgrounded and brought back with an uninitialized notification or status list.
This commit is contained in:
parent
ab537ef3cb
commit
3f8378ae3a
5 changed files with 10 additions and 9 deletions
|
|
@ -71,7 +71,6 @@ public class NotificationsFragment extends SFragment implements
|
|||
}
|
||||
|
||||
private SwipeRefreshLayout swipeRefreshLayout;
|
||||
|
||||
private LinearLayoutManager layoutManager;
|
||||
private RecyclerView recyclerView;
|
||||
private EndlessOnScrollListener scrollListener;
|
||||
|
|
@ -134,6 +133,7 @@ public class NotificationsFragment extends SFragment implements
|
|||
LocalBroadcastManager.getInstance(context.getApplicationContext())
|
||||
.registerReceiver(timelineReceiver, TimelineReceiver.getFilter(null));
|
||||
|
||||
notifications.clear();
|
||||
topLoading = false;
|
||||
topFetches = 0;
|
||||
bottomLoading = false;
|
||||
|
|
|
|||
|
|
@ -159,6 +159,7 @@ public class TimelineFragment extends SFragment implements
|
|||
LocalBroadcastManager.getInstance(context.getApplicationContext())
|
||||
.registerReceiver(timelineReceiver, TimelineReceiver.getFilter(kind));
|
||||
|
||||
statuses.clear();
|
||||
topLoading = false;
|
||||
topFetches = 0;
|
||||
bottomLoading = false;
|
||||
|
|
|
|||
|
|
@ -106,6 +106,7 @@ public class ViewThreadFragment extends SFragment implements
|
|||
adapter.setMediaPreviewEnabled(mediaPreviewEnabled);
|
||||
recyclerView.setAdapter(adapter);
|
||||
|
||||
statuses.clear();
|
||||
thisThreadsStatusId = null;
|
||||
|
||||
timelineReceiver = new TimelineReceiver(this, this);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue