@@ -88,7 +88,8 @@ class TableViewControllerSetting: UITableViewController, UITextFieldDelegate {
8888 NSLocalizedString ( " Use PDF viewer " , comment: " " ) ,
8989 NSLocalizedString ( " Use Media viewer " , comment: " " ) ,
9090 NSLocalizedString ( " Lock rotation " , comment: " " ) ,
91- NSLocalizedString ( " Force landscape " , comment: " " ) ] ,
91+ NSLocalizedString ( " Force landscape " , comment: " " ) ,
92+ NSLocalizedString ( " Landscape with camera left " , comment: " " ) ] ,
9293 [ NSLocalizedString ( " Use FFmpeg Media viewer " , comment: " " ) ,
9394 NSLocalizedString ( " Prior Media viewer is FFmpeg " , comment: " " ) ] ,
9495 [ NSLocalizedString ( " Save last play position " , comment: " " ) ,
@@ -182,6 +183,10 @@ class TableViewControllerSetting: UITableViewController, UITextFieldDelegate {
182183 aSwitch. isEnabled = UIDevice . current. userInterfaceIdiom == . phone
183184 aSwitch. isOn = UserDefaults . standard. bool ( forKey: " ForceLandscape " )
184185 aSwitch. tag = 11
186+ case 5 :
187+ aSwitch. isEnabled = UIDevice . current. userInterfaceIdiom == . phone && UserDefaults . standard. bool ( forKey: " ForceLandscape " )
188+ aSwitch. isOn = UserDefaults . standard. bool ( forKey: " LandscapeCameraLeft " )
189+ aSwitch. tag = 15
185190 default :
186191 break
187192 }
@@ -361,12 +366,20 @@ class TableViewControllerSetting: UITableViewController, UITextFieldDelegate {
361366 present ( v, animated: false ) {
362367 v. dismiss ( animated: false , completion: nil )
363368 }
369+ tableView. reloadData ( )
364370 case 12 :
365371 UserDefaults . standard. set ( value, forKey: " noOverlaySubtitles " )
366372 case 13 :
367373 UserDefaults . standard. set ( value, forKey: " autoSelectStreams " )
368374 case 14 :
369375 UserDefaults . standard. set ( value, forKey: " keepOpenWhenDone " )
376+ case 15 :
377+ UserDefaults . standard. set ( value, forKey: " LandscapeCameraLeft " )
378+ let v = UIViewController ( )
379+ v. modalPresentationStyle = . fullScreen
380+ present ( v, animated: false ) {
381+ v. dismiss ( animated: false , completion: nil )
382+ }
370383 default :
371384 break
372385 }
0 commit comments