Skip to content

Commit

Permalink
Update GameMenu.java
Browse files Browse the repository at this point in the history
  • Loading branch information
ShirosakiMio committed Jan 30, 2025
1 parent 09bb11f commit 8640dfc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion FCL/src/main/java/com/tungsten/fcl/control/GameMenu.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import android.graphics.BitmapFactory;
import android.graphics.drawable.BitmapDrawable;
import android.util.Log;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
Expand Down Expand Up @@ -331,6 +330,9 @@ private void initLeftMenu() {
}

private void refreshViewGroupList(FCLSpinner<ControlViewGroup> spinner) {
if (getViewGroup() != null) {
setViewGroup(null);
}
ArrayList<String> viewGroupNameList = controllerProperty.get().viewGroups().stream().map(ControlViewGroup::getName).collect(Collectors.toCollection(ArrayList::new));
spinner.setDataList(new ArrayList<>(controllerProperty.get().viewGroups()));
ArrayAdapter<String> viewGroupNameAdapter = new ArrayAdapter<>(activity, R.layout.item_spinner_small, viewGroupNameList);
Expand Down

0 comments on commit 8640dfc

Please sign in to comment.