|
@@ -53,8 +53,8 @@ namespace GFGGame
|
|
{
|
|
{
|
|
base.OnShown();
|
|
base.OnShown();
|
|
_curIndex = (int)(this.viewData as object[])[0];
|
|
_curIndex = (int)(this.viewData as object[])[0];
|
|
- _photoInfos = (this.viewData as object[])[1] as List<PoemPhotoData>;
|
|
|
|
-
|
|
|
|
|
|
+ List<PoemPhotoData> photoInfos = (this.viewData as object[])[1] as List<PoemPhotoData>;
|
|
|
|
+ _photoInfos = new List<PoemPhotoData>(photoInfos.ToArray());
|
|
_ui.m_list.numItems = _photoInfos.Count;
|
|
_ui.m_list.numItems = _photoInfos.Count;
|
|
_ui.m_list.height = _ui.m_list.GetChildAt(0).height;
|
|
_ui.m_list.height = _ui.m_list.GetChildAt(0).height;
|
|
UpdateView();
|
|
UpdateView();
|