Commit dc5d62dbe25694edf82691e83849f13b529803f9
1 parent
a8cc4734
Adjust the LayoutManager access method in ViewStateListData
Showing
2 changed files
with
1 additions
and
12 deletions
app/src/main/res/layout/activity_launch.xml
cnlive/src/main/java/com/cnlive/libs/base/frame/model/ViewStateListData.java
| ... | ... | @@ -5,7 +5,6 @@ import android.databinding.Bindable; |
| 5 | 5 | import android.databinding.ViewDataBinding; |
| 6 | 6 | import android.os.Parcel; |
| 7 | 7 | import android.os.Parcelable; |
| 8 | -import android.support.v7.widget.LinearLayoutManager; | |
| 9 | 8 | import android.support.v7.widget.RecyclerView; |
| 10 | 9 | |
| 11 | 10 | import com.cnlive.libs.base.frame.adapter.DataBindingRecyclerAdapter; |
| ... | ... | @@ -39,7 +38,6 @@ public abstract class ViewStateListData<ITEM extends BaseObservable, BINDING ext |
| 39 | 38 | |
| 40 | 39 | private List<ITEM> list = new ArrayList<>(); |
| 41 | 40 | |
| 42 | - private RecyclerView.LayoutManager manager = getLayoutManager(); | |
| 43 | 41 | |
| 44 | 42 | private DataBindingRecyclerAdapter<ITEM, BINDING> adapter = new DataBindingRecyclerAdapter<ITEM, BINDING>() { |
| 45 | 43 | @Override |
| ... | ... | @@ -63,15 +61,6 @@ public abstract class ViewStateListData<ITEM extends BaseObservable, BINDING ext |
| 63 | 61 | notifyPropertyChanged(com.cnlive.libs.base.BR.adapter); |
| 64 | 62 | } |
| 65 | 63 | |
| 66 | - @Bindable | |
| 67 | - public RecyclerView.LayoutManager getManager() { | |
| 68 | - return manager; | |
| 69 | - } | |
| 70 | - | |
| 71 | - public void setManager(LinearLayoutManager manager) { | |
| 72 | - this.manager = manager; | |
| 73 | - notifyPropertyChanged(com.cnlive.libs.base.BR.manager); | |
| 74 | - } | |
| 75 | 64 | |
| 76 | 65 | @Override |
| 77 | 66 | public int describeContents() { | ... | ... |