File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ var sharedApplication: UIApplication?
170170 return
171171 }
172172
173- let unityAppController = self . ufw? . appController as? UnityAppController
173+ let unityAppController = self . ufw? . appController ( ) as? UnityAppController
174174 let application = UIApplication . shared
175175
176176 if notification? . name == UIApplication . willResignActiveNotification {
@@ -199,13 +199,10 @@ var sharedApplication: UIApplication?
199199 UIApplication . willEnterForegroundNotification,
200200 UIApplication . didReceiveMemoryWarningNotification
201201 ] {
202- guard let name = name as? String else {
203- continue
204- }
205202 NotificationCenter . default. addObserver (
206203 self ,
207204 selector: #selector( self . handleAppStateDidChange) ,
208- name: NSNotification . Name ( name) ,
205+ name: name,
209206 object: nil )
210207 }
211208 }
You can’t perform that action at this time.
0 commit comments