File tree 1 file changed +2
-5
lines changed
1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ var sharedApplication: UIApplication?
170
170
return
171
171
}
172
172
173
- let unityAppController = self . ufw? . appController as? UnityAppController
173
+ let unityAppController = self . ufw? . appController ( ) as? UnityAppController
174
174
let application = UIApplication . shared
175
175
176
176
if notification? . name == UIApplication . willResignActiveNotification {
@@ -199,13 +199,10 @@ var sharedApplication: UIApplication?
199
199
UIApplication . willEnterForegroundNotification,
200
200
UIApplication . didReceiveMemoryWarningNotification
201
201
] {
202
- guard let name = name as? String else {
203
- continue
204
- }
205
202
NotificationCenter . default. addObserver (
206
203
self ,
207
204
selector: #selector( self . handleAppStateDidChange) ,
208
- name: NSNotification . Name ( name) ,
205
+ name: name,
209
206
object: nil )
210
207
}
211
208
}
You can’t perform that action at this time.
0 commit comments