Commit a3777bb4 authored by Varun Patil's avatar Varun Patil

Show tabs in Profile Fragment only after loading

parent 91f75509
...@@ -81,6 +81,9 @@ public class ProfileFragment extends BaseFragment { ...@@ -81,6 +81,9 @@ public class ProfileFragment extends BaseFragment {
TextView userEmailIDTextView = getActivity().findViewById(R.id.user_email_profile); TextView userEmailIDTextView = getActivity().findViewById(R.id.user_email_profile);
TextView userContactNumberTextView = getActivity().findViewById(R.id.user_contact_no_profile); TextView userContactNumberTextView = getActivity().findViewById(R.id.user_contact_no_profile);
/** Show tabs */
getActivity().findViewById(R.id.tab_layout).setVisibility(View.VISIBLE);
final List<Role> roleList = user.getUserRoles(); final List<Role> roleList = user.getUserRoles();
RecyclerView userRoleRecyclerView = getActivity().findViewById(R.id.role_recycler_view); RecyclerView userRoleRecyclerView = getActivity().findViewById(R.id.role_recycler_view);
RoleAdapter roleAdapter = new RoleAdapter(roleList, new ItemClickListener() { RoleAdapter roleAdapter = new RoleAdapter(roleList, new ItemClickListener() {
......
...@@ -68,7 +68,8 @@ ...@@ -68,7 +68,8 @@
android:id="@+id/tab_layout" android:id="@+id/tab_layout"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="40dp" android:layout_height="40dp"
android:background="@color/colorPrimaryDark"> android:background="@color/colorPrimaryDark"
android:visibility="invisible">
<android.support.design.widget.TabItem <android.support.design.widget.TabItem
android:id="@+id/following_tab" android:id="@+id/following_tab"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment