mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-22 04:55: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;
|
import retrofit2.HttpException;
|
||||||
|
|
||||||
@AutoInjector(NextcloudTalkApplication.class)
|
@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";
|
public static final String TAG = "CallsListController";
|
||||||
|
|
||||||
|
@ -146,7 +147,6 @@ public class CallsListController extends BaseController implements SearchView.On
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
adapter.addListener(new OnItemClickListener());
|
|
||||||
prepareViews();
|
prepareViews();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -384,9 +384,6 @@ public class CallsListController extends BaseController implements SearchView.On
|
||||||
bottomSheet.show();
|
bottomSheet.show();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private class OnItemClickListener implements FlexibleAdapter.OnItemClickListener {
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onItemClick(int position) {
|
public boolean onItemClick(int position) {
|
||||||
if (callItems.size() > position) {
|
if (callItems.size() > position) {
|
||||||
|
@ -403,6 +400,4 @@ public class CallsListController extends BaseController implements SearchView.On
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -47,7 +47,7 @@ import eu.davidea.flexibleadapter.common.SmoothScrollLinearLayoutManager;
|
||||||
import eu.davidea.flexibleadapter.items.AbstractFlexibleItem;
|
import eu.davidea.flexibleadapter.items.AbstractFlexibleItem;
|
||||||
|
|
||||||
@AutoInjector(NextcloudTalkApplication.class)
|
@AutoInjector(NextcloudTalkApplication.class)
|
||||||
public class RoomMenuController extends BaseController {
|
public class RoomMenuController extends BaseController implements FlexibleAdapter.OnItemClickListener{
|
||||||
@BindView(R.id.recycler_view)
|
@BindView(R.id.recycler_view)
|
||||||
RecyclerView recyclerView;
|
RecyclerView recyclerView;
|
||||||
private Room room;
|
private Room room;
|
||||||
|
@ -82,7 +82,6 @@ public class RoomMenuController extends BaseController {
|
||||||
}
|
}
|
||||||
|
|
||||||
recyclerView.setAdapter(adapter);
|
recyclerView.setAdapter(adapter);
|
||||||
adapter.addListener(new OnItemClickListener());
|
|
||||||
|
|
||||||
recyclerView.addItemDecoration(new DividerItemDecoration(
|
recyclerView.addItemDecoration(new DividerItemDecoration(
|
||||||
recyclerView.getContext(),
|
recyclerView.getContext(),
|
||||||
|
@ -120,8 +119,6 @@ public class RoomMenuController extends BaseController {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private class OnItemClickListener implements FlexibleAdapter.OnItemClickListener {
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onItemClick(int position) {
|
public boolean onItemClick(int position) {
|
||||||
if (menuItems.size() > position) {
|
if (menuItems.size() > position) {
|
||||||
|
@ -130,5 +127,4 @@ public class RoomMenuController extends BaseController {
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue