From 850397c4fa99ccddf66920dc33e276917bd4acd5 Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 11 Aug 2018 18:04:50 +0000 Subject: [PATCH] Add edit button to folder items --- .../java/eu/faircode/email/AdapterFolder.java | 37 ++++++++----------- .../eu/faircode/email/FragmentFolders.java | 5 --- app/src/main/res/layout/item_folder.xml | 13 ++++++- app/src/main/res/values/strings.xml | 2 - 4 files changed, 26 insertions(+), 31 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/AdapterFolder.java b/app/src/main/java/eu/faircode/email/AdapterFolder.java index 6d6e5964..f14062f5 100644 --- a/app/src/main/java/eu/faircode/email/AdapterFolder.java +++ b/app/src/main/java/eu/faircode/email/AdapterFolder.java @@ -26,6 +26,7 @@ import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; +import android.widget.ImageButton; import android.widget.ImageView; import android.widget.TextView; @@ -48,14 +49,14 @@ public class AdapterFolder extends RecyclerView.Adapter all = new ArrayList<>(); private List filtered = new ArrayList<>(); - public class ViewHolder extends RecyclerView.ViewHolder - implements View.OnClickListener, View.OnLongClickListener { + public class ViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener { View itemView; TextView tvName; TextView tvMessages; TextView tvType; TextView tvAfter; ImageView ivSync; + ImageButton ibEdit; TextView tvError; ViewHolder(View itemView) { @@ -67,18 +68,18 @@ public class AdapterFolder extends RecyclerView.Adapter + + Draft saved Sending message - Long press item to edit properties - Debug info Please describe the problem and indicate the time of the problem: