瀏覽代碼

preserve aspect ratio in user info activity

tobiasKaminsky 7 年之前
父節點
當前提交
03f5022104
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/java/com/owncloud/android/ui/activity/UserInfoActivity.java

+ 1 - 1
src/main/java/com/owncloud/android/ui/activity/UserInfoActivity.java

@@ -283,7 +283,7 @@ public class UserInfoActivity extends FileActivity {
 
             Glide.with(this)
                     .load(backgroundUrl)
-                    .fitCenter()
+                    .centerCrop()
                     .placeholder(R.drawable.background)
                     .error(R.drawable.background)
                     .crossFade()