Skip to content

Commit

Permalink
Fix #3191 Make the username along with the rewards icon clickable in …
Browse files Browse the repository at this point in the history
…the Navigation Drawer (#3401)
  • Loading branch information
yashk2000 authored Feb 11, 2020
1 parent eb40051 commit b65e4a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import android.view.MenuItem;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import android.widget.Toast;

Expand Down Expand Up @@ -136,7 +137,7 @@ private void setUserName() {
if (allAccounts.length != 0) {
username.setText(allAccounts[0].name);
}
ImageView userIcon = navHeaderView.findViewById(R.id.user_icon);
LinearLayout userIcon = navHeaderView.findViewById(R.id.user_details);
userIcon.setOnClickListener(v -> {
drawerLayout.closeDrawer(navigationView);
AchievementsActivity.startYourself(NavigationBaseActivity.this);
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/layout/drawer_header.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
app:srcCompat="@drawable/commons_logo"/>

<LinearLayout
android:id="@+id/user_details"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
Expand Down

0 comments on commit b65e4a1

Please sign in to comment.