mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-02 15:17:03 +02:00
Cleanup
This commit is contained in:
@@ -31,7 +31,6 @@ import android.text.TextUtils;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.ArrayAdapter;
|
||||
import android.widget.ImageView;
|
||||
import android.widget.ProgressBar;
|
||||
import android.widget.TextView;
|
||||
@@ -274,28 +273,6 @@ public class AdapterAttachment extends RecyclerView.Adapter<AdapterAttachment.Vi
|
||||
this.info = info;
|
||||
}
|
||||
}
|
||||
|
||||
public class TargetAdapter extends ArrayAdapter<NameResolveInfo> {
|
||||
private Context context;
|
||||
|
||||
TargetAdapter(Context context, int resid, List<NameResolveInfo> items) {
|
||||
super(context, resid, items);
|
||||
this.context = context;
|
||||
}
|
||||
|
||||
public View getView(int position, View convertView, ViewGroup parent) {
|
||||
NameResolveInfo item = getItem(position);
|
||||
|
||||
View view = LayoutInflater.from(context).inflate(R.layout.item_target, null);
|
||||
ImageView ivIcon = view.findViewById(R.id.ivIcon);
|
||||
TextView tvName = view.findViewById(R.id.tvName);
|
||||
|
||||
ivIcon.setImageDrawable(item.icon);
|
||||
tvName.setText(item.name);
|
||||
|
||||
return view;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
AdapterAttachment(Context context, LifecycleOwner owner, boolean readonly) {
|
||||
|
||||
Reference in New Issue
Block a user