Skip to content

Commit

Permalink
Update ItemManager.java
Browse files Browse the repository at this point in the history
it seems this is controlled via preference and would fail the logic for the view index
  • Loading branch information
kevlahnota authored Nov 17, 2024
1 parent b8a2903 commit f5e024b
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions forge-gui-mobile/src/forge/itemmanager/ItemManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -149,16 +149,9 @@ protected ItemManager(final Class<T> genericType0, final boolean wantUnique0) {
listView = new ItemListView<>(this, model);
imageView = createImageView(model);

if (Forge.isMobileAdventureMode) {
// reversed default
views.add(imageView);
views.add(listView);
currentView = imageView;
} else {
views.add(listView);
views.add(imageView);
currentView = listView;
}
views.add(listView);
views.add(imageView);
currentView = listView;
btnView.setIcon(currentView.getIcon());

//build display
Expand Down

0 comments on commit f5e024b

Please sign in to comment.