1
0
mirror of https://framagit.org/tom79/nitterizeme synced 2025-01-09 23:35:42 +01:00

Some fixes

This commit is contained in:
Thomas 2020-03-01 10:14:27 +01:00
parent e75b68d50d
commit 8d9946a5d5
3 changed files with 6 additions and 6 deletions

View File

@ -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;

View File

@ -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() {

View File

@ -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;