Split RecyclerViewFragment#getAdapter() into getAdapter() and onCreateAdapter()

This commit is contained in:
Phillip Hsu
2016-09-03 03:15:22 -07:00
parent b1ac2e60dd
commit ca2da0ad66
4 changed files with 52 additions and 19 deletions
@@ -259,11 +259,8 @@ public class StopwatchFragment extends RecyclerViewFragment<
updateAllFabs();
}
@Nullable
@Override
protected LapsAdapter getAdapter() {
if (super.getAdapter() != null)
return super.getAdapter();
protected LapsAdapter onCreateAdapter(Bundle savedInstanceState) {
return new LapsAdapter();
}