Push notifyDataSetChanged invocation into adapter.
That is probably the place most responsible for knowing if the dataset has changed and broadcasting that fact.
This commit is contained in:
parent
17c97e577e
commit
6e0ea68bab
@ -490,7 +490,6 @@ public class AppDetails2 extends AppCompatActivity implements ShareChooserDialog
|
||||
}
|
||||
AppDetailsRecyclerViewAdapter adapter = (AppDetailsRecyclerViewAdapter)mRecyclerView.getAdapter();
|
||||
adapter.updateItems(mApp);
|
||||
adapter.notifyDataSetChanged();
|
||||
supportInvalidateOptionsMenu();
|
||||
}
|
||||
});
|
||||
|
@ -118,6 +118,8 @@ public class AppDetailsRecyclerViewAdapter
|
||||
addItem(VIEWTYPE_LINKS);
|
||||
addItem(VIEWTYPE_PERMISSIONS);
|
||||
addItem(VIEWTYPE_VERSIONS);
|
||||
|
||||
notifyDataSetChanged();
|
||||
}
|
||||
|
||||
private void setShowVersions(boolean showVersions) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user