From 3aa561567ce887b560e64b45563c2906738852ac Mon Sep 17 00:00:00 2001 From: ArtDev <45949002+artdeell@users.noreply.github.com> Date: Sun, 20 Mar 2022 14:30:06 +0300 Subject: [PATCH] Update ProfileAdapter.java --- .../main/java/net/kdt/pojavlaunch/profiles/ProfileAdapter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/profiles/ProfileAdapter.java b/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/profiles/ProfileAdapter.java index e19567ca5..2f81fad53 100644 --- a/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/profiles/ProfileAdapter.java +++ b/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/profiles/ProfileAdapter.java @@ -36,7 +36,7 @@ public class ProfileAdapter extends BaseAdapter { mCreateProfile.name = "Create new profile"; mCreateProfile.lastVersionId = ""; } - mProfileList = new ArrayList<>(Arrays.asList(profiles.keySet().toArray(new String[0]))); + mProfileList = new ArrayList<>(Arrays.asList(mProfiles.keySet().toArray(new String[0]))); if(enableCreateButton) { mProfileList.add(ProfileAdapter.CREATE_PROFILE_MAGIC); mProfiles.put(CREATE_PROFILE_MAGIC, mCreateProfile);