소스 검색

fix avatar

marinofaggiana 4 년 전
부모
커밋
72546343d3
1개의 변경된 파일1개의 추가작업 그리고 5개의 파일을 삭제
  1. 1 5
      iOSClient/Settings/CCManageAccount.m

+ 1 - 5
iOSClient/Settings/CCManageAccount.m

@@ -74,11 +74,7 @@
         } else {
             
             UIImage *image = [UIImage imageNamed:@"avatarCredentials"];
-            UIGraphicsBeginImageContextWithOptions(CGSizeMake(35, 35), NO, 0.0);
-            [image drawInRect:CGRectMake(0, 0, 35, 35)];
-            UIImage *newImage = UIGraphicsGetImageFromCurrentImageContext();
-            UIGraphicsEndImageContext();
-            avatar = newImage;
+            avatar = [image imageWithColor:NCBrandColor.shared.icon size:35];
         }
         
         row.cellConfigAtConfigure[@"backgroundColor"] = NCBrandColor.shared.backgroundCell;