Permalink
Browse files

Fix the problem that toolbars are hidden when languages on SwipeTable…

…ViewController are switched.
  • Loading branch information...
1 parent 899107d commit e2b6f3beccb6fd24c0f4d039974467722ac5fcfa @yoichitgy yoichitgy committed Dec 29, 2016
Showing with 3 additions and 1 deletion.
  1. +3 −1 browser/SwipeBrowser.swift
@@ -450,7 +450,9 @@ class SwipeBrowser: UIViewController, SwipeDocumentViewerDelegate {
//print("SwipeB language selected \(langId)")
self.documentViewer?.reloadWithLanguageId(langId)
#if os(iOS)
- self.hideUI()
+ if let documentViewer = self.documentViewer, documentViewer.hideUI() {
+ self.hideUI()
+ }
#endif
}))
}

0 comments on commit e2b6f3b

Please sign in to comment.