Code cleanup
This commit is contained in:
parent
b01807d2a9
commit
6cbf35972b
@ -57,7 +57,7 @@ public class ServerListAdapter extends RecyclerView.Adapter<ServerListAdapter.Se
|
|||||||
@NonNull
|
@NonNull
|
||||||
@Override
|
@Override
|
||||||
public ServerViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
|
public ServerViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
|
||||||
View itemView = mInflater.inflate(R.layout.row_serverbook, parent, false);
|
View itemView = mInflater.inflate(R.layout.row_server_address_book, parent, false);
|
||||||
return new ServerViewHolder(itemView);
|
return new ServerViewHolder(itemView);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -57,7 +57,7 @@ public class ServerSearchAdapter extends RecyclerView.Adapter<ServerSearchAdapte
|
|||||||
@Override
|
@Override
|
||||||
public AccountViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
|
public AccountViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
|
||||||
LayoutInflater layoutInflater = LayoutInflater.from(parent.getContext());
|
LayoutInflater layoutInflater = LayoutInflater.from(parent.getContext());
|
||||||
View view = layoutInflater.inflate(R.layout.row_server, parent, false);
|
View view = layoutInflater.inflate(R.layout.row_search_server, parent, false);
|
||||||
|
|
||||||
baseUrl = APIUrlHelper.getUrl(activity);
|
baseUrl = APIUrlHelper.getUrl(activity);
|
||||||
|
|
||||||
|
@ -63,7 +63,7 @@ public class VideoAdapter extends RecyclerView.Adapter<VideoAdapter.VideoViewHol
|
|||||||
@Override
|
@Override
|
||||||
public VideoViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
|
public VideoViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
|
||||||
LayoutInflater layoutInflater = LayoutInflater.from(parent.getContext());
|
LayoutInflater layoutInflater = LayoutInflater.from(parent.getContext());
|
||||||
View view = layoutInflater.inflate(R.layout.row_video, parent, false);
|
View view = layoutInflater.inflate(R.layout.row_video_list, parent, false);
|
||||||
|
|
||||||
baseUrl = APIUrlHelper.getUrl(context);
|
baseUrl = APIUrlHelper.getUrl(context);
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:background="@android:color/darker_gray"
|
android:background="@android:color/darker_gray"
|
||||||
tools:listitem="@layout/row_serverbook" />
|
tools:listitem="@layout/row_server_address_book" />
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user