mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
set file extension for selfavatar
This commit is contained in:
@@ -74,7 +74,7 @@ public class AvatarHelper {
|
||||
public static File getSelfAvatarFile(@NonNull Context context, @NonNull String address) {
|
||||
File avatarDirectory = new File(context.getFilesDir(), AVATAR_DIRECTORY);
|
||||
avatarDirectory.mkdirs();
|
||||
return new File(avatarDirectory, address);
|
||||
return new File(avatarDirectory, address+".jpg");
|
||||
}
|
||||
|
||||
public static void setSelfAvatar(@NonNull Context context, @NonNull String address, @Nullable byte[] data) throws IOException {
|
||||
|
||||
Reference in New Issue
Block a user