public void changePlayerProfile(PlayerProfile newProfile) {
   this.profile = newProfile;
   for (int id : Achievements.getAchievementIDs()) {
     this.list.put(id, newProfile.getPlayerAchievements().hasUnlocked(id));
   }
   //   sortList();
   this.notifyDataSetChanged();
 }
 public PlayerAchievementsListAdapter(FullscreenActivity fa, PlayerProfile playerProfile) {
   this.fa = fa;
   this.profile = playerProfile;
   this.layoutInflater = LayoutInflater.from(fa);
   this.list = new LinkedHashMap<>();
   for (int id : Achievements.getAchievementIDs()) {
     this.list.put(id, playerProfile.getPlayerAchievements().hasUnlocked(id));
   }
   //        sortList();
 }