mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 10:18:01 +00:00
refresh on activate when imageview
This commit is contained in:
@@ -230,10 +230,13 @@ public class FDeckChooser extends FScreen {
|
||||
|
||||
@Override
|
||||
public void onActivate() {
|
||||
//todo how to get the lobby player net deck category when activating the deck manager in homescreen?
|
||||
String selectedDeck = "";
|
||||
if (lstDecks.getSelectedItem() != null)
|
||||
selectedDeck = lstDecks.getSelectedItem().getDeck().toString();
|
||||
if(lstDecks.getConfig().getViewIndex() == 1) {
|
||||
//todo: investigate why sometimes it doesn't update the display on deck imageview even though the decks are there?
|
||||
needRefreshOnActivate = true;
|
||||
if (lstDecks.getSelectedItem() != null)
|
||||
selectedDeck = lstDecks.getSelectedItem().getDeck().toString();
|
||||
}
|
||||
if (needRefreshOnActivate) {
|
||||
needRefreshOnActivate = false;
|
||||
refreshDecksList(selectedDeckType, true, null);
|
||||
@@ -283,6 +286,7 @@ public class FDeckChooser extends FScreen {
|
||||
lstDecks.setSelectedString(DeckPreferences.getSealedDeck());
|
||||
break;
|
||||
default:
|
||||
//FIXME: set the deckmanager netdeck category when activating the deckmanager in homescreen
|
||||
lstDecks.setSelectedString(DeckPreferences.getCurrentDeck());
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user