Halsafar 4 лет назад
Родитель
Сommit
6fde6a56bb
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      SongBrowserPlugin/UI/Keyboard/SearchKeyboardViewController.cs

+ 2 - 2
SongBrowserPlugin/UI/Keyboard/SearchKeyboardViewController.cs

@@ -20,9 +20,9 @@ namespace SongBrowser.UI
         public event Action<string> searchButtonPressed;
         public event Action backButtonPressed;
 
-        protected override void DidActivate(bool firstActivation, ActivationType type)
+        protected override void DidActivate(bool firstActivation, bool addedToHierarchy, bool screenSystemEnabling)
         {
-            if (type == ActivationType.AddedToHierarchy && firstActivation)
+            if (addedToHierarchy && firstActivation)
             {
                 _searchKeyboardGO = Instantiate(Resources.FindObjectsOfTypeAll<UIKeyboard>().First(x => x.name != "CustomUIKeyboard"), rectTransform, false).gameObject;