mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-19 09:39:25 -04:00
Fix the extension
This commit is contained in:
parent
416345b37d
commit
9d11bd3306
@ -23,7 +23,7 @@ public class AccountSkin {
|
||||
private static Bitmap getSkinFromProperty(SkinProperty p) throws IOException {
|
||||
for (Map.Entry<String, Texture> texture : p.textures.entrySet()) {
|
||||
if (texture.getKey().equals("SKIN")) {
|
||||
String skinFile = File.createTempFile("skin", "png", new File(Tools.DIR_DATA, "cache")).getAbsolutePath();
|
||||
String skinFile = File.createTempFile("skin", ".png", new File(Tools.DIR_DATA, "cache")).getAbsolutePath();
|
||||
Tools.downloadFile(texture.getValue().url, skinFile);
|
||||
return BitmapFactory.decodeFile(skinFile);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user