|
@@ -30,6 +30,7 @@ import android.support.annotation.NonNull;
|
|
|
|
|
|
import com.owncloud.android.authentication.AccountUtils;
|
|
|
import com.owncloud.android.utils.BitmapUtils;
|
|
|
+import com.owncloud.android.utils.NextcloudServer;
|
|
|
|
|
|
import java.io.UnsupportedEncodingException;
|
|
|
import java.security.NoSuchAlgorithmException;
|
|
@@ -95,6 +96,7 @@ public class TextDrawable extends Drawable {
|
|
|
* @throws NoSuchAlgorithmException if the specified algorithm is not available when calculating the color values
|
|
|
*/
|
|
|
@NonNull
|
|
|
+ @NextcloudServer(min = -1, max = 12)
|
|
|
public static TextDrawable createAvatar(String accountName, float radiusInDp) throws
|
|
|
UnsupportedEncodingException, NoSuchAlgorithmException {
|
|
|
String username = AccountUtils.getAccountUsername(accountName);
|