mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-21 20:45:29 +03:00
Clean up
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
b3fe5baebd
commit
6ceb0c12da
2 changed files with 23 additions and 32 deletions
|
@ -84,7 +84,8 @@ import io.reactivex.schedulers.Schedulers;
|
|||
import retrofit2.HttpException;
|
||||
|
||||
@AutoInjector(NextcloudTalkApplication.class)
|
||||
public class CallsListController extends BaseController implements SearchView.OnQueryTextListener {
|
||||
public class CallsListController extends BaseController implements SearchView.OnQueryTextListener,
|
||||
FlexibleAdapter.OnItemClickListener {
|
||||
|
||||
public static final String TAG = "CallsListController";
|
||||
|
||||
|
@ -146,7 +147,6 @@ public class CallsListController extends BaseController implements SearchView.On
|
|||
}
|
||||
}
|
||||
|
||||
adapter.addListener(new OnItemClickListener());
|
||||
prepareViews();
|
||||
|
||||
}
|
||||
|
@ -384,9 +384,6 @@ public class CallsListController extends BaseController implements SearchView.On
|
|||
bottomSheet.show();
|
||||
}
|
||||
|
||||
|
||||
private class OnItemClickListener implements FlexibleAdapter.OnItemClickListener {
|
||||
|
||||
@Override
|
||||
public boolean onItemClick(int position) {
|
||||
if (callItems.size() > position) {
|
||||
|
@ -403,6 +400,4 @@ public class CallsListController extends BaseController implements SearchView.On
|
|||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -47,7 +47,7 @@ import eu.davidea.flexibleadapter.common.SmoothScrollLinearLayoutManager;
|
|||
import eu.davidea.flexibleadapter.items.AbstractFlexibleItem;
|
||||
|
||||
@AutoInjector(NextcloudTalkApplication.class)
|
||||
public class RoomMenuController extends BaseController {
|
||||
public class RoomMenuController extends BaseController implements FlexibleAdapter.OnItemClickListener{
|
||||
@BindView(R.id.recycler_view)
|
||||
RecyclerView recyclerView;
|
||||
private Room room;
|
||||
|
@ -82,7 +82,6 @@ public class RoomMenuController extends BaseController {
|
|||
}
|
||||
|
||||
recyclerView.setAdapter(adapter);
|
||||
adapter.addListener(new OnItemClickListener());
|
||||
|
||||
recyclerView.addItemDecoration(new DividerItemDecoration(
|
||||
recyclerView.getContext(),
|
||||
|
@ -120,8 +119,6 @@ public class RoomMenuController extends BaseController {
|
|||
}
|
||||
}
|
||||
|
||||
private class OnItemClickListener implements FlexibleAdapter.OnItemClickListener {
|
||||
|
||||
@Override
|
||||
public boolean onItemClick(int position) {
|
||||
if (menuItems.size() > position) {
|
||||
|
@ -130,5 +127,4 @@ public class RoomMenuController extends BaseController {
|
|||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue