mirror of
https://framagit.org/tom79/nitterizeme
synced 2025-01-09 23:35:42 +01:00
Some fixes
This commit is contained in:
parent
e75b68d50d
commit
8d9946a5d5
@ -104,7 +104,7 @@ public class AppInfoAdapter extends RecyclerView.Adapter {
|
||||
}
|
||||
|
||||
|
||||
class ViewHolder extends RecyclerView.ViewHolder {
|
||||
static class ViewHolder extends RecyclerView.ViewHolder {
|
||||
ImageView app_icon, valid;
|
||||
TextView information, domain;
|
||||
LinearLayout main_container;
|
||||
|
@ -20,7 +20,7 @@ class Instance {
|
||||
private long latency = -1;
|
||||
private boolean checked = false;
|
||||
private instanceType type;
|
||||
private boolean cloudflare =false;
|
||||
private boolean cloudflare = false;
|
||||
private String locale;
|
||||
|
||||
String getDomain() {
|
||||
|
@ -91,10 +91,10 @@ public class InstanceAdapter extends RecyclerView.Adapter {
|
||||
}
|
||||
|
||||
holder.locale.setText(instance.getLocale());
|
||||
if( instance.isCloudflare()){
|
||||
if (instance.isCloudflare()) {
|
||||
holder.useCloudflare.setVisibility(View.VISIBLE);
|
||||
holder.useCloudflare.setOnClickListener(v -> Toast.makeText(context,R.string.cloudflare,Toast.LENGTH_SHORT).show());
|
||||
}else{
|
||||
holder.useCloudflare.setOnClickListener(v -> Toast.makeText(context, R.string.cloudflare, Toast.LENGTH_SHORT).show());
|
||||
} else {
|
||||
holder.useCloudflare.setVisibility(View.GONE);
|
||||
}
|
||||
|
||||
@ -171,7 +171,7 @@ public class InstanceAdapter extends RecyclerView.Adapter {
|
||||
}
|
||||
|
||||
|
||||
class ViewHolder extends RecyclerView.ViewHolder {
|
||||
static class ViewHolder extends RecyclerView.ViewHolder {
|
||||
RadioButton checkbox_instance;
|
||||
TextView latency, locale;
|
||||
ProgressBar progress;
|
||||
|
Loading…
Reference in New Issue
Block a user