Skip to content
This repository has been archived by the owner on Mar 3, 2021. It is now read-only.

Commit

Permalink
Fixing blank rendering issue
Browse files Browse the repository at this point in the history
  • Loading branch information
coreyhulen committed Jul 12, 2016
1 parent 1f021c2 commit ab47776
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
19 changes: 10 additions & 9 deletions Mattermost/HomeViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -191,15 +191,15 @@ class HomeViewController: UIViewController, UIWebViewDelegate, MattermostApiProt
activityIndicator.startAnimating()
currentUrl = Utils.getServerUrl() + Utils.getProp(LAST_CHANNEL)

if (!force) {
if let webViewUrl = webView.request?.URL!.absoluteString {
if (webViewUrl.containsString(currentUrl)) {
print("skippingDoRootView")
activityIndicator.stopAnimating()
return
}
}
}
// if (!force) {
// if let webViewUrl = webView.request?.URL!.absoluteString {
// if (webViewUrl.containsString(currentUrl)) {
// print("skippingDoRootView")
// activityIndicator.stopAnimating()
// return
// }
// }
// }

let url = NSURL(string: currentUrl)
let request = NSURLRequest(URL: url!)
Expand Down Expand Up @@ -237,6 +237,7 @@ class HomeViewController: UIViewController, UIWebViewDelegate, MattermostApiProt
print("Home view fail with error \(error)");

if errorCount < 3 {
sleep(3)
self.doRootView(true);
errorCount = errorCount + 1
return
Expand Down
6 changes: 4 additions & 2 deletions Mattermost/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>3.1</string>
<string>3.2</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>31</string>
<string>33</string>
<key>LSApplicationCategoryType</key>
<string></string>
<key>LSRequiresIPhoneOS</key>
Expand Down Expand Up @@ -64,5 +64,7 @@
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
</dict>
</plist>

0 comments on commit ab47776

Please sign in to comment.