浏览代码

polished user info UI

AndyScherzinger 8 年之前
父节点
当前提交
f194025a2c

+ 1 - 0
build.gradle

@@ -42,6 +42,7 @@ repositories {
 }
 
 
+
 }
 
 android {

二进制
res/drawable-hdpi/ic_map_marker.png


二进制
res/drawable-hdpi/ic_phone.png


二进制
res/drawable-mdpi/ic_map_marker.png


二进制
res/drawable-mdpi/ic_phone.png


二进制
res/drawable-xhdpi/ic_map_marker.png


二进制
res/drawable-xhdpi/ic_phone.png


二进制
res/drawable-xxhdpi/ic_map_marker.png


二进制
res/drawable-xxhdpi/ic_phone.png


二进制
res/drawable-xxxhdpi/ic_map_marker.png


二进制
res/drawable-xxxhdpi/ic_phone.png


+ 118 - 0
res/layout/toolbar_user_information.xml

@@ -0,0 +1,118 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+  Nextcloud Android client application
+
+  Copyright (C) 2017 Andy Scherzinger
+  Copyright (C) 2017 Nextcloud
+
+  This program is free software; you can redistribute it and/or
+  modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
+  License as published by the Free Software Foundation; either
+  version 3 of the License, or any later version.
+
+  This program is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+  GNU AFFERO GENERAL PUBLIC LICENSE for more details.
+
+  You should have received a copy of the GNU Affero General Public
+  License along with this program.  If not, see <http://www.gnu.org/licenses/>.
+-->
+<android.support.design.widget.AppBarLayout
+    android:id="@+id/appbar"
+    xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:app="http://schemas.android.com/apk/res-auto"
+    android:layout_width="match_parent"
+    android:layout_height="@dimen/nav_drawer_header_height"
+    android:background="@drawable/background"
+    android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar">
+
+    <LinearLayout
+        android:layout_width="match_parent"
+        android:layout_height="match_parent"
+        android:orientation="vertical"
+        android:gravity="bottom">
+
+        <RelativeLayout
+            xmlns:android="http://schemas.android.com/apk/res/android"
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
+            android:layout_marginBottom="12dp"
+            android:layout_marginLeft="12dp"
+            android:layout_marginRight="@dimen/standard_half_margin"
+            android:gravity="bottom"
+            android:orientation="horizontal"
+            android:weightSum="1">
+
+            <FrameLayout
+                android:id="@+id/avatar_container"
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content">
+
+                <ImageView
+                    android:id="@+id/user_icon"
+                    android:layout_width="@dimen/nav_drawer_header_avatar"
+                    android:layout_height="@dimen/nav_drawer_header_avatar"
+                    android:src="@drawable/ic_account_circle"/>
+            </FrameLayout>
+
+            <LinearLayout
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content"
+                android:layout_centerInParent="true"
+                android:layout_marginLeft="@dimen/standard_half_margin"
+                android:layout_marginRight="@dimen/standard_half_margin"
+                android:layout_toEndOf="@id/avatar_container"
+                android:layout_toRightOf="@id/avatar_container"
+                android:orientation="vertical">
+
+                <TextView
+                    android:id="@+id/drawer_username_full"
+                    android:layout_width="match_parent"
+                    android:layout_height="wrap_content"
+                    android:ellipsize="end"
+                    android:maxLines="1"
+                    android:shadowColor="@color/black"
+                    android:shadowDx="0.5"
+                    android:shadowDy="0"
+                    android:shadowRadius="2"
+                    android:text="@string/app_name"
+                    android:textColor="@android:color/white"
+                    android:textSize="@dimen/drawer_header_text"
+                    android:textStyle="bold"/>
+
+                <TextView
+                    android:id="@+id/drawer_username"
+                    android:layout_width="match_parent"
+                    android:layout_height="wrap_content"
+                    android:ellipsize="end"
+                    android:lines="1"
+                    android:maxLines="1"
+                    android:shadowColor="@color/black"
+                    android:shadowDx="0.5"
+                    android:shadowDy="0"
+                    android:shadowRadius="2"
+                    android:text="@string/app_name"
+                    android:textColor="@android:color/white"
+                    android:textSize="@dimen/drawer_header_subtext"/>
+            </LinearLayout>
+
+        </RelativeLayout>
+
+    </LinearLayout>
+
+    <android.support.v7.widget.Toolbar
+        android:id="@id/toolbar"
+        android:layout_width="match_parent"
+        android:layout_height="?attr/actionBarSize"
+        app:layout_scrollFlags="scroll|enterAlways|snap"
+        app:popupTheme="@style/ThemeOverlay.AppCompat.Light"/>
+
+    <android.support.v7.widget.Toolbar
+        android:id="@+id/toolbar"
+        android:layout_width="match_parent"
+        android:layout_height="?attr/actionBarSize"
+        app:layout_scrollFlags="scroll|enterAlways|snap"
+        app:popupTheme="@style/ThemeOverlay.AppCompat.Light"/>
+
+</android.support.design.widget.AppBarLayout>

+ 225 - 14
res/layout/user_info_layout.xml

@@ -1,34 +1,245 @@
 <?xml version="1.0" encoding="utf-8"?>
+<!--
+  Nextcloud Android client application
+
+  Copyright (C) 2017 Andy Scherzinger
+  Copyright (C) 2017 Nextcloud
+
+  This program is free software; you can redistribute it and/or
+  modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
+  License as published by the Free Software Foundation; either
+  version 3 of the License, or any later version.
+
+  This program is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+  GNU AFFERO GENERAL PUBLIC LICENSE for more details.
+
+  You should have received a copy of the GNU Affero General Public
+  License along with this program.  If not, see <http://www.gnu.org/licenses/>.
+-->
 <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
-                                                 xmlns:app="http://schemas.android.com/apk/res-auto"
+                                                 xmlns:card_view="http://schemas.android.com/apk/res-auto"
                                                  android:layout_width="match_parent"
                                                  android:layout_height="match_parent">
 
-
     <include
-        layout="@layout/toolbar_standard"></include>
+        layout="@layout/toolbar_user_information"/>
 
-    <android.support.v7.widget.RecyclerView
-        android:id="@+id/generic_rv"
-        android:layout_width="match_parent"
-        android:layout_height="wrap_content"
-        android:visibility="gone"
-        app:layout_behavior="@string/appbar_scrolling_view_behavior">
-
-    </android.support.v7.widget.RecyclerView>
+    <include layout="@layout/empty_list"/>
 
     <RelativeLayout
         android:id="@+id/multi_view"
         android:layout_width="match_parent"
-        android:layout_height="match_parent">
+        android:layout_height="match_parent"
+        android:paddingTop="@dimen/nav_drawer_header_height">
 
         <ScrollView
             android:layout_width="match_parent"
-            android:layout_height="match_parent">
+            android:layout_height="match_parent"
+            android:layout_alignParentTop="true"
+            android:layout_alignParentLeft="true"
+            android:layout_alignParentStart="true">
+
+            <LinearLayout
+                android:id="@+id/user_info_view"
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content"
+                android:orientation="vertical"
+                android:visibility="gone">
+
+                <android.support.v7.widget.CardView
+                    android:id="@+id/primary_user_info_view"
+                    android:layout_width="match_parent"
+                    android:layout_height="wrap_content"
+                    android:layout_gravity="center"
+                    android:layout_margin="@dimen/standard_half_margin"
+                    card_view:cardCornerRadius="3dp"
+                    card_view:cardUseCompatPadding="true">
+
+                    <LinearLayout
+                        android:layout_width="match_parent"
+                        android:layout_height="wrap_content"
+                        android:orientation="vertical">
+
+                        <RelativeLayout
+                            android:id="@+id/phone_container"
+                            android:layout_width="match_parent"
+                            android:layout_height="wrap_content">
+
+                            <ImageView
+                                android:id="@+id/phone_icon"
+                                android:layout_width="wrap_content"
+                                android:layout_height="wrap_content"
+                                android:layout_margin="@dimen/standard_margin"
+                                android:src="@drawable/ic_phone"/>
+
+                            <TextView
+                                android:id="@+id/phone_number"
+                                android:layout_width="match_parent"
+                                android:layout_height="wrap_content"
+                                android:layout_centerInParent="true"
+                                android:layout_marginRight="@dimen/standard_padding"
+                                android:layout_marginBottom="@dimen/standard_margin"
+                                android:layout_marginTop="@dimen/standard_margin"
+                                android:layout_toEndOf="@id/phone_icon"
+                                android:layout_toRightOf="@id/phone_icon"
+                                android:maxLines="3"
+                                android:text="@string/placeholder_filename"
+                                android:textAppearance="?android:attr/textAppearanceListItem"/>
+
+                        </RelativeLayout>
+
+                        <RelativeLayout
+                            android:id="@+id/email_container"
+                            android:layout_width="match_parent"
+                            android:layout_height="wrap_content">
+
+                            <View
+                                android:layout_width="match_parent"
+                                android:layout_height="1dp"
+                                android:background="@color/list_divider_background"/>
+
+                            <ImageView
+                                android:id="@+id/email_icon"
+                                android:layout_width="wrap_content"
+                                android:layout_height="wrap_content"
+                                android:layout_margin="@dimen/standard_margin"
+                                android:src="@drawable/ic_email"/>
+
+                            <TextView
+                                android:id="@+id/email_address"
+                                android:layout_width="match_parent"
+                                android:layout_height="wrap_content"
+                                android:layout_centerInParent="true"
+                                android:layout_marginRight="@dimen/standard_padding"
+                                android:layout_marginBottom="@dimen/standard_margin"
+                                android:layout_marginTop="@dimen/standard_margin"
+                                android:layout_toEndOf="@id/email_icon"
+                                android:layout_toRightOf="@id/email_icon"
+                                android:maxLines="3"
+                                android:text="@string/placeholder_filename"
+                                android:textAppearance="?android:attr/textAppearanceListItem"/>
+
+                        </RelativeLayout>
+
+                        <RelativeLayout
+                            android:id="@+id/address_container"
+                            android:layout_width="match_parent"
+                            android:layout_height="wrap_content">
 
-            <include layout="@layout/empty_list"/>
+                            <View
+                                android:layout_width="match_parent"
+                                android:layout_height="1dp"
+                                android:background="@color/list_divider_background"/>
+
+                            <ImageView
+                                android:id="@+id/address_icon"
+                                android:layout_width="wrap_content"
+                                android:layout_height="wrap_content"
+                                android:layout_margin="@dimen/standard_margin"
+                                android:src="@drawable/ic_map_marker"/>
+
+                            <TextView
+                                android:id="@+id/address"
+                                android:layout_width="match_parent"
+                                android:layout_height="wrap_content"
+                                android:layout_centerInParent="true"
+                                android:layout_marginRight="@dimen/standard_padding"
+                                android:layout_marginBottom="@dimen/standard_margin"
+                                android:layout_marginTop="@dimen/standard_margin"
+                                android:layout_toEndOf="@id/address_icon"
+                                android:layout_toRightOf="@id/address_icon"
+                                android:maxLines="3"
+                                android:text="@string/placeholder_filename"
+                                android:textAppearance="?android:attr/textAppearanceListItem"/>
+
+                        </RelativeLayout>
+
+                    </LinearLayout>
+
+                </android.support.v7.widget.CardView>
+
+                <android.support.v7.widget.CardView
+                    android:id="@+id/secondary_user_info_view"
+                    android:layout_width="match_parent"
+                    android:layout_height="wrap_content"
+                    android:layout_gravity="center"
+                    android:layout_margin="@dimen/standard_half_margin"
+                    card_view:cardCornerRadius="3dp"
+                    card_view:cardUseCompatPadding="true">
+
+                    <LinearLayout
+                        android:layout_width="match_parent"
+                        android:layout_height="wrap_content"
+                        android:orientation="vertical">
+
+                        <LinearLayout
+                            android:id="@+id/website_container"
+                            android:layout_width="match_parent"
+                            android:layout_height="wrap_content"
+                            android:layout_margin="@dimen/standard_margin"
+                            android:orientation="vertical">
+
+                            <TextView
+                                android:id="@+id/website_headline"
+                                android:layout_width="match_parent"
+                                android:layout_height="wrap_content"
+                                android:text="@string/user_info_website"
+                                android:textAppearance="?android:attr/textAppearanceListItem"/>
+
+                            <TextView
+                                android:id="@+id/website_address"
+                                android:layout_width="match_parent"
+                                android:layout_height="wrap_content"
+                                android:maxLines="3"
+                                android:text="@string/user_info_twitter"
+                                android:textColor="?android:attr/textColorSecondary"/>
+
+                        </LinearLayout>
+
+                        <LinearLayout
+                            android:id="@+id/twitter_container"
+                            android:layout_width="match_parent"
+                            android:layout_height="wrap_content"
+                            android:layout_marginBottom="@dimen/standard_margin"
+                            android:orientation="vertical">
+
+                            <View
+                                android:layout_width="match_parent"
+                                android:layout_height="1dp"
+                                android:layout_marginBottom="@dimen/standard_margin"
+                                android:background="@color/list_divider_background"/>
+
+                            <TextView
+                                android:id="@+id/twitter_headline"
+                                android:layout_width="match_parent"
+                                android:layout_height="wrap_content"
+                                android:layout_marginRight="@dimen/standard_margin"
+                                android:layout_marginLeft="@dimen/standard_margin"
+                                android:text="Twitter"
+                                android:textAppearance="?android:attr/textAppearanceListItem"/>
+
+                            <TextView
+                                android:id="@+id/twitter_handle"
+                                android:layout_width="match_parent"
+                                android:layout_height="wrap_content"
+                                android:layout_marginRight="@dimen/standard_margin"
+                                android:layout_marginLeft="@dimen/standard_margin"
+                                android:maxLines="1"
+                                android:text="@string/placeholder_filename"
+                                android:textColor="?android:attr/textColorSecondary"/>
+
+                        </LinearLayout>
+
+                    </LinearLayout>
+
+                </android.support.v7.widget.CardView>
+
+            </LinearLayout>
 
         </ScrollView>
+
     </RelativeLayout>
 
 

+ 4 - 2
res/layout/user_info_list_item.xml

@@ -14,7 +14,8 @@
         android:layout_marginLeft="8dp"
         android:layout_marginBottom="4dp"
         android:textSize="20sp"
-        android:textStyle="bold"/>
+        android:textStyle="bold"
+        android:text="@string/placeholder_filename"/>
 
     <TextView
         android:id="@+id/attribute_value_tv"
@@ -24,6 +25,7 @@
         android:layout_marginLeft="8dp"
         android:layout_marginRight="8dp"
         android:layout_marginBottom="8dp"
-        android:textSize="16sp"/>
+        android:textSize="16sp"
+        android:text="@string/placeholder_filename"/>
 
 </RelativeLayout>

+ 97 - 40
src/com/owncloud/android/ui/activity/UserInfoActivity.java

@@ -28,10 +28,11 @@ import android.app.DialogFragment;
 import android.content.DialogInterface;
 import android.content.Intent;
 import android.os.Bundle;
+import android.support.annotation.ColorInt;
 import android.support.annotation.NonNull;
 import android.support.annotation.Nullable;
-import android.support.v7.widget.LinearLayoutManager;
-import android.support.v7.widget.RecyclerView;
+import android.support.v4.content.ContextCompat;
+import android.support.v4.graphics.drawable.DrawableCompat;
 import android.text.TextUtils;
 import android.view.Menu;
 import android.view.MenuInflater;
@@ -40,7 +41,6 @@ import android.view.View;
 import android.widget.ImageView;
 import android.widget.LinearLayout;
 import android.widget.ProgressBar;
-import android.widget.RelativeLayout;
 import android.widget.TextView;
 
 import com.owncloud.android.R;
@@ -50,7 +50,7 @@ import com.owncloud.android.lib.common.operations.RemoteOperation;
 import com.owncloud.android.lib.common.operations.RemoteOperationResult;
 import com.owncloud.android.lib.common.utils.Log_OC;
 import com.owncloud.android.lib.resources.users.GetRemoteUserInfoOperation;
-import com.owncloud.android.ui.adapter.UserInfoAdapter;
+import com.owncloud.android.utils.DisplayUtils;
 
 import org.parceler.Parcels;
 
@@ -72,11 +72,6 @@ public class UserInfoActivity extends FileActivity {
 
     private static final int KEY_DELETE_CODE = 101;
 
-    @BindView(R.id.generic_rv)
-    public RecyclerView genericRecyclerView;
-
-    @BindView(R.id.multi_view)
-    public RelativeLayout multiView;
     @BindView(R.id.empty_list_view)
     public LinearLayout multiListContainer;
     @BindView(R.id.empty_list_view_text)
@@ -85,15 +80,53 @@ public class UserInfoActivity extends FileActivity {
     public TextView multiListHeadline;
     @BindView(R.id.empty_list_icon)
     public ImageView multiListIcon;
+    @BindView(R.id.user_info_view)
+    public LinearLayout userInfoView;
+    @BindView(R.id.user_icon)
+    public ImageView avatar;
+    @BindView(R.id.drawer_username)
+    public TextView userName;
+    @BindView(R.id.drawer_username_full)
+    public TextView fullName;
+
+    @BindView(R.id.phone_container)
+    public View mPhoneNumberContainer;
+    @BindView(R.id.phone_number)
+    public TextView mPhoneNumberTextView;
+    @BindView(R.id.phone_icon)
+    public ImageView mPhoneNumberIcon;
+
+    @BindView(R.id.email_container)
+    public View mEmailContainer;
+    @BindView(R.id.email_address)
+    public TextView mEmailAddressTextView;
+    @BindView(R.id.email_icon)
+    public ImageView mEmailIcon;
+
+    @BindView(R.id.address_container)
+    public View mAddressContainer;
+    @BindView(R.id.address)
+    public TextView mAddressTextView;
+    @BindView(R.id.address_icon)
+    public ImageView mAddressIcon;
+
+    @BindView(R.id.website_container)
+    public View mWebsiteContainer;
+    @BindView(R.id.website_address)
+    public TextView mWebsiteTextView;
+
+    @BindView(R.id.twitter_container)
+    public View mTwitterContainer;
+    @BindView(R.id.twitter_handle)
+    public TextView mTwitterHandleTextView;
+
     @BindView(R.id.empty_list_progress)
     public ProgressBar multiListProgressBar;
 
     @BindString(R.string.preview_sorry)
     public String sorryMessage;
 
-    private RecyclerView.Adapter adapter;
-
-    private RecyclerView.Adapter adapter;
+    private float mCurrentAccountAvatarRadiusDimension;
 
     private Unbinder unbinder;
 
@@ -115,6 +148,8 @@ public class UserInfoActivity extends FileActivity {
             userInfo = Parcels.unwrap(savedInstanceState.getParcelable(KEY_USER_DATA));
         }
 
+        mCurrentAccountAvatarRadiusDimension = getResources().getDimension(R.dimen.nav_drawer_header_avatar_radius);
+
         if (bundle.containsKey(KEY_DISPLAY_NAME)) {
             displayName = bundle.getString(KEY_DISPLAY_NAME);
         } else if (userInfo != null && !TextUtils.isEmpty(userInfo.getDisplayName())) {
@@ -125,26 +160,12 @@ public class UserInfoActivity extends FileActivity {
         unbinder = ButterKnife.bind(this);
 
         setupToolbar();
-        if (!TextUtils.isEmpty(displayName)) {
-            updateActionBarTitleAndHomeButtonByString(displayName);
-        } else {
-            updateActionBarTitleAndHomeButtonByString(getResources().getString(R.string.user_information_description));
-        }
-
-        RecyclerView.LayoutManager layoutManager = new LinearLayoutManager(this);
-        genericRecyclerView.setLayoutManager(layoutManager);
-
-        // This will be enabled once we migrate to new support libraries
-        
-        /*DividerItemDecoration dividerItemDecoration = new DividerItemDecoration(genericRecyclerView.getContext(),
-                ((LinearLayoutManager)layoutManager).getOrientation());
-        genericRecyclerView.addItemDecoration(dividerItemDecoration);*/
+        updateActionBarTitleAndHomeButtonByString("");
 
         if (userInfo != null) {
-            adapter = new UserInfoAdapter(userInfo, UserInfoActivity.this);
-            genericRecyclerView.setAdapter(adapter);
-            multiView.setVisibility(View.GONE);
-            genericRecyclerView.setVisibility(View.VISIBLE);
+            populateUserInfoUi(userInfo);
+            multiListContainer.setVisibility(View.GONE);
+            userInfoView.setVisibility(View.VISIBLE);
         } else {
             setMultiListLoadingMessage();
             fetchAndSetData();
@@ -184,9 +205,8 @@ public class UserInfoActivity extends FileActivity {
         unbinder.unbind();
     }
 
-
     private void setMultiListLoadingMessage() {
-        if (multiView != null) {
+        if (multiListContainer != null) {
             multiListHeadline.setText(R.string.file_list_loading);
             multiListMessage.setText("");
 
@@ -196,7 +216,7 @@ public class UserInfoActivity extends FileActivity {
     }
 
     public void setMessageForMultiList(String headline, String message) {
-        if (multiView != null && multiListMessage != null) {
+        if (multiListContainer != null && multiListMessage != null) {
             multiListHeadline.setText(headline);
             multiListMessage.setText(message);
 
@@ -204,6 +224,44 @@ public class UserInfoActivity extends FileActivity {
         }
     }
 
+    public void populateUserInfoUi(UserInfo userInfo) {
+        userName.setText(account.name);
+        int tint = ContextCompat.getColor(this, R.color.primary);
+
+        if (userInfo != null) {
+            displayName = userInfo.getDisplayName();
+            if (!TextUtils.isEmpty(userInfo.getDisplayName())) {
+                fullName.setText(userInfo.getDisplayName());
+            }
+
+            populateUserInfoElement(mPhoneNumberContainer, mPhoneNumberTextView, userInfo.getPhone(),
+                    mPhoneNumberIcon, tint);
+            populateUserInfoElement(mEmailContainer, mEmailAddressTextView, userInfo.getEmail(), mEmailIcon, tint);
+            populateUserInfoElement(mAddressContainer, mAddressTextView, userInfo.getAddress(), mAddressIcon, tint);
+
+            populateUserInfoElement(mWebsiteContainer, mWebsiteTextView, userInfo.getWebpage());
+            populateUserInfoElement(mTwitterContainer, mTwitterHandleTextView, userInfo.getTwitter());
+        }
+    }
+
+    private void populateUserInfoElement(View container, TextView textView, String text) {
+        if (!TextUtils.isEmpty(text)) {
+            textView.setText(text);
+        } else {
+            container.setVisibility(View.GONE);
+        }
+    }
+
+    private void populateUserInfoElement(View container, TextView textView, String text, ImageView icon, @ColorInt int
+            tint) {
+        if (!TextUtils.isEmpty(text)) {
+            textView.setText(text);
+            DrawableCompat.setTint(icon.getDrawable(), tint);
+        } else {
+            container.setVisibility(View.GONE);
+        }
+    }
+
 
     private void changeAccountPassword(Account account) {
         Intent updateAccountCredentials = new Intent(UserInfoActivity.this, AuthenticatorActivity.class);
@@ -277,14 +335,16 @@ public class UserInfoActivity extends FileActivity {
 
                 if (result.isSuccess() && result.getData() != null) {
                     userInfo = (UserInfo) result.getData().get(0);
-                    adapter = new UserInfoAdapter(userInfo, UserInfoActivity.this);
 
                     runOnUiThread(new Runnable() {
                         @Override
                         public void run() {
-                            genericRecyclerView.setAdapter(adapter);
-                            multiView.setVisibility(View.GONE);
-                            genericRecyclerView.setVisibility(View.VISIBLE);
+                            populateUserInfoUi(userInfo);
+                            DisplayUtils.setAvatar(account, UserInfoActivity.this,
+                                    mCurrentAccountAvatarRadiusDimension, getResources(), getStorageManager(),
+                                    avatar);
+                            multiListContainer.setVisibility(View.GONE);
+                            userInfoView.setVisibility(View.VISIBLE);
                         }
                     });
                 } else {
@@ -298,8 +358,6 @@ public class UserInfoActivity extends FileActivity {
         t.start();
     }
 
-
-
     @Override
     protected void onSaveInstanceState(Bundle outState) {
         super.onSaveInstanceState(outState);
@@ -307,5 +365,4 @@ public class UserInfoActivity extends FileActivity {
             outState.putParcelable(KEY_USER_DATA, Parcels.wrap(userInfo));
         }
     }
-
 }