mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Fix context leak from feed list fragment.
This commit is contained in:
parent
812b387293
commit
a46ee33ab5
1 changed files with 1 additions and 3 deletions
|
@ -57,7 +57,6 @@ public class FolderListFragment extends NbFragment implements OnCreateContextMen
|
|||
public StateFilter currentState = StateFilter.SOME;
|
||||
private SharedPreferences sharedPreferences;
|
||||
@FindView(R.id.folderfeed_list) ExpandableListView list;
|
||||
private Main activity;
|
||||
public boolean firstCursorSeenYet = false;
|
||||
|
||||
@Override
|
||||
|
@ -73,7 +72,6 @@ public class FolderListFragment extends NbFragment implements OnCreateContextMen
|
|||
public void onActivityCreated(Bundle savedInstanceState) {
|
||||
super.onActivityCreated(savedInstanceState);
|
||||
sharedPreferences = getActivity().getSharedPreferences(PrefConstants.PREFERENCES, 0);
|
||||
activity = (Main) getActivity();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -279,7 +277,7 @@ public class FolderListFragment extends NbFragment implements OnCreateContextMen
|
|||
* DB model, so having Main also load it would cause some lag.
|
||||
*/
|
||||
public void pushUnreadCounts() {
|
||||
activity.updateUnreadCounts((adapter.totalNeutCount+adapter.totalSocialNeutCount), (adapter.totalPosCount+adapter.totalSocialPosiCount));
|
||||
((Main) getActivity()).updateUnreadCounts((adapter.totalNeutCount+adapter.totalSocialNeutCount), (adapter.totalPosCount+adapter.totalSocialPosiCount));
|
||||
}
|
||||
|
||||
@OnGroupClick(R.id.folderfeed_list) boolean onGroupClick(ExpandableListView list, View group, int groupPosition, long id) {
|
||||
|
|
Loading…
Add table
Reference in a new issue