From 23714bdd8921cc6a78bb66da2973798d65489e32 Mon Sep 17 00:00:00 2001 From: Pierre Date: Wed, 14 Mar 2018 18:23:45 +0100 Subject: [PATCH] Made bottom menu lighter. --- .../comunic/client/ui/fragments/UserPageFragment.java | 6 +++--- app/src/main/res/menu/main_bottom_navigation.xml | 11 ++++++----- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/app/src/main/java/org/communiquons/android/comunic/client/ui/fragments/UserPageFragment.java b/app/src/main/java/org/communiquons/android/comunic/client/ui/fragments/UserPageFragment.java index 73952df..5f9a5e7 100644 --- a/app/src/main/java/org/communiquons/android/comunic/client/ui/fragments/UserPageFragment.java +++ b/app/src/main/java/org/communiquons/android/comunic/client/ui/fragments/UserPageFragment.java @@ -201,12 +201,12 @@ public class UserPageFragment extends Fragment { getActivity().setTitle(userInfo.getDisplayFullName()); //Update activity menu dock - if(AccountUtils.getID(getActivity()) == userID) + //if(AccountUtils.getID(getActivity()) == userID) ((MainActivity) getActivity()).setSelectedNavigationItem( R.id.main_bottom_navigation_me_view); - else + /*else ((MainActivity) getActivity()).setSelectedNavigationItem( - R.id.main_bottom_navigation_users_view); + R.id.main_bottom_navigation_users_view);*/ //Update user name and account image user_name.setText(userInfo.getDisplayFullName()); diff --git a/app/src/main/res/menu/main_bottom_navigation.xml b/app/src/main/res/menu/main_bottom_navigation.xml index 9b94b8e..b29acce 100644 --- a/app/src/main/res/menu/main_bottom_navigation.xml +++ b/app/src/main/res/menu/main_bottom_navigation.xml @@ -6,17 +6,18 @@ android:icon="@drawable/ic_menu_allfriends" /> - + android:visible="false" />--> + android:title="@string/navigation_bottom_user_item" + android:icon="@drawable/perm_group_personal_info" + />