ingame/guild/gamepad/guildhistory_gamepad.lua:62 -- GUILD_HISTORY_GAMEPAD_FRAGMENT:RegisterCallback("StateChange", function(oldState, newState)
if newState == SCENE_SHOWING then
self:InitializeGuildHistory()
--The category list is shared among all the guild screens so it needs to be built each time screen shows
self:PopulateCategoryList()
self.categoryList:SetSelectedIndexWithoutAnimation(1)
self:RequestInitialEvents()
self:SelectCategoryList()
self.refreshGroup:TryClean()
elseif newState == SCENE_HIDING then
KEYBIND_STRIP:RemoveKeybindButtonGroup(self.keybindStripDescriptor)
self.keybindStripDescriptor = nil
GAMEPAD_NAV_QUADRANT_1_BACKGROUND_FRAGMENT:TakeFocus()
self.categoryList:Deactivate()
self.activityList:Deactivate()
end
end)