Skip to content

Commit 56e6b46

Browse files
committed
Load screen preference on when launching the app
1 parent c0700c9 commit 56e6b46

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: OpenGpxTracker/ViewController.swift

+3
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,9 @@ class ViewController: UIViewController, UIGestureRecognizerDelegate {
433433
useImperial = Preferences.shared.useImperial
434434
// LocationManager.activityType = Preferences.shared.locationActivityType
435435

436+
// Shall it keep the screen always on?
437+
UIApplication.shared.isIdleTimerDisabled = Preferences.shared.keepScreenAlwaysOn
438+
436439
//
437440
// Config user interface
438441
//

0 commit comments

Comments
 (0)