diff --git a/app/src/main/java/org/communiquons/android/comunic/client/ui/adapters/FriendsAdapter.java b/app/src/main/java/org/communiquons/android/comunic/client/ui/adapters/FriendsAdapter.java
index 98a5cbc..a112ff1 100644
--- a/app/src/main/java/org/communiquons/android/comunic/client/ui/adapters/FriendsAdapter.java
+++ b/app/src/main/java/org/communiquons/android/comunic/client/ui/adapters/FriendsAdapter.java
@@ -8,6 +8,7 @@ import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
+import android.widget.ImageView;
import android.widget.TextView;
import org.communiquons.android.comunic.client.R;
@@ -155,12 +156,17 @@ public class FriendsAdapter extends BaseRecyclerViewAdapter {
/**
* Accepted friend holder
*/
- private class AcceptedFriendHolder extends BaseFriendHolder implements View.OnLongClickListener {
+ private class AcceptedFriendHolder extends BaseFriendHolder implements View.OnLongClickListener, View.OnClickListener {
+
+ private ImageView mMoreBtn;
AcceptedFriendHolder(@NonNull View itemView) {
super(itemView);
+ mMoreBtn = itemView.findViewById(R.id.more_btn);
+
itemView.setOnLongClickListener(this);
+ mMoreBtn.setOnClickListener(this);
}
@Override
@@ -172,6 +178,12 @@ public class FriendsAdapter extends BaseRecyclerViewAdapter {
mListener.onOpenContextMenuForFriend(itemView, getLayoutPosition());
return true;
}
+
+ @Override
+ public void onClick(View v) {
+ if(v.equals(mMoreBtn))
+ mListener.onOpenContextMenuForFriend(v, getLayoutPosition());
+ }
}
diff --git a/app/src/main/res/layout/friend_accepted_item.xml b/app/src/main/res/layout/friend_accepted_item.xml
index f41f3a7..49e2788 100644
--- a/app/src/main/res/layout/friend_accepted_item.xml
+++ b/app/src/main/res/layout/friend_accepted_item.xml
@@ -52,5 +52,22 @@
+
+
diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml
index 13242f4..10de949 100644
--- a/app/src/main/res/values-fr/strings.xml
+++ b/app/src/main/res/values-fr/strings.xml
@@ -240,4 +240,5 @@
A propos
Rejeter
Demande
+ Plus d\'options
\ No newline at end of file
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index af483fd..97a0cd5 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -242,4 +242,5 @@
Open Source Licences
Reject
Requested
+ Get more options