Browse Source

Applied a listener on account menu button

Signed-off-by: Kilian Périsset <kilian.perisset@infomaniak.com>
Kilian Périsset 5 years ago
parent
commit
d12d20fc1d

+ 6 - 0
src/main/java/com/owncloud/android/ui/adapter/UserListAdapter.java

@@ -296,13 +296,19 @@ public class UserListAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolde
 
         private User user;
 
+        private ImageView accountMenuButton;
+
+
         AccountViewHolderItem(@NonNull View view) {
             super(view);
             this.imageViewItem = view.findViewById(R.id.user_icon);
             this.checkViewItem = view.findViewById(R.id.ticker);
             this.usernameViewItem = view.findViewById(R.id.user_name);
             this.accountViewItem = view.findViewById(R.id.account);
+            this.accountMenuButton = view.findViewById(R.id.account_menu);
+
             view.setOnClickListener(this);
+            accountMenuButton.setOnClickListener(this);
         }
 
         public void setData(User user) {

+ 1 - 1
src/main/res/layout/account_item.xml

@@ -95,7 +95,7 @@
         </LinearLayout>
 
         <ImageView
-            android:id="@+id/overflow_menu"
+            android:id="@+id/account_menu"
             android:layout_width="wrap_content"
             android:layout_height="match_parent"
             android:layout_centerVertical="true"