Browse Source

Remove gesture close detail PDF + images for iPad

Marino Faggiana 6 years ago
parent
commit
068721530a
1 changed files with 6 additions and 0 deletions
  1. 6 0
      iOSClient/Main/CCDetail.m

+ 6 - 0
iOSClient/Main/CCDetail.m

@@ -386,6 +386,9 @@
     self.photoBrowser.autoPlayOnAppear = NO;
     self.photoBrowser.delayToHideElements = 15;
     
+    if ([UIDevice currentDevice].userInterfaceIdiom == UIUserInterfaceIdiomPad)
+        self.photoBrowser.enableSwipeToDismiss = NO;
+    
     if (self.traitCollection.horizontalSizeClass == UIUserInterfaceSizeClassCompact) {
         
         [self addChildViewController:self.photoBrowser];
@@ -864,10 +867,13 @@
 
 - (void)handleSwipeUpDown
 {
+    // REMOVE IT'S UNUSABLE
+    /*
     self.navigationController.navigationBarHidden = false;  // iOS App is unusable after swipe up or down with PDF in fullscreen #526
 
     [self removeAllView];
     [self.navigationController popViewControllerAnimated:YES];
+    */
 }
 
 #pragma --------------------------------------------------------------------------------------------