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
|
@Override
|
||||||
public void onActivate() {
|
public void onActivate() {
|
||||||
//todo how to get the lobby player net deck category when activating the deck manager in homescreen?
|
|
||||||
String selectedDeck = "";
|
String selectedDeck = "";
|
||||||
if (lstDecks.getSelectedItem() != null)
|
if(lstDecks.getConfig().getViewIndex() == 1) {
|
||||||
selectedDeck = lstDecks.getSelectedItem().getDeck().toString();
|
//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) {
|
if (needRefreshOnActivate) {
|
||||||
needRefreshOnActivate = false;
|
needRefreshOnActivate = false;
|
||||||
refreshDecksList(selectedDeckType, true, null);
|
refreshDecksList(selectedDeckType, true, null);
|
||||||
@@ -283,6 +286,7 @@ public class FDeckChooser extends FScreen {
|
|||||||
lstDecks.setSelectedString(DeckPreferences.getSealedDeck());
|
lstDecks.setSelectedString(DeckPreferences.getSealedDeck());
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
//FIXME: set the deckmanager netdeck category when activating the deckmanager in homescreen
|
||||||
lstDecks.setSelectedString(DeckPreferences.getCurrentDeck());
|
lstDecks.setSelectedString(DeckPreferences.getCurrentDeck());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user