Unverified Commit 80192890 authored by Zach Knox's avatar Zach Knox
Browse files

make considerations on waiting for the network

parent e2e37162
......@@ -23,7 +23,7 @@
<key>CFBundleShortVersionString</key>
<string>1.1</string>
<key>CFBundleVersion</key>
<string>32</string>
<string>33</string>
<key>Fabric</key>
<dict>
<key>APIKey</key>
......
......@@ -186,6 +186,9 @@ class FacilitiesListViewController: UIViewController, UICollectionViewDelegate,
if(userActivity == nil) {
return // don't do anything
}
while(facilitiesArray.count == 0) { // because I'm too lazy to have the downloader post a notification here
sleep(1)
}
let facility = facilitiesArray.filter(NSPredicate(format: "facilityName = '" + (userActivity?.title)! + "'")).first
if(facility == nil) {
return // don't do anything
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment