Commit c5c79909 authored by Adrien Oliva's avatar Adrien Oliva

feat(character) Show avatar

Grab avatar image and display it in side panel.

GTLAB #2Signed-off-by: Adrien Oliva's avatarAdrien Oliva <olivaa+gitlab@yapbreak.fr>
parent 9bbac59e
Pipeline #476 passed with stage
in 0 seconds
......@@ -4,6 +4,7 @@ import android.Manifest;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.os.Environment;
import android.support.annotation.NonNull;
......@@ -76,6 +77,8 @@ public class QuestList extends AppCompatActivity
+ " "
+ activeCharacter.getLevel();
navigation_details.setText(details);
navigation_avatar.setImageBitmap(BitmapFactory.decodeFile(activeCharacter.getAvatarFileName()));
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment