codacy: could be replaced by a local variable

This commit is contained in:
AndyScherzinger 2018-02-21 21:53:06 +01:00
parent f7257af2c2
commit 4440e1e192
No known key found for this signature in database
GPG Key ID: 6CADC7E3523C308B

View File

@ -113,8 +113,6 @@ public class CallsListController extends BaseController implements SearchView.On
@BindView(R.id.fast_scroller)
FastScroller fastScroller;
private SmoothScrollLinearLayoutManager layoutManager;
private UserEntity userEntity;
private Disposable roomsQueryDisposable;
private FlexibleAdapter<CallItem> adapter;
@ -332,7 +330,8 @@ public class CallsListController extends BaseController implements SearchView.On
}
private void prepareViews() {
layoutManager = new SmoothScrollLinearLayoutManager(getActivity());
SmoothScrollLinearLayoutManager layoutManager =
new SmoothScrollLinearLayoutManager(getActivity());
recyclerView.setLayoutManager(layoutManager);
recyclerView.setHasFixedSize(true);