Apply fixes after review.
authorPiotr Czaja/Advanced Frameworks (PLT) /SRPOL/Engineer/Samsung Electronics <p.czaja@samsung.com>
Fri, 27 Aug 2021 13:08:19 +0000 (15:08 +0200)
committerPiotr Czaja <p.czaja@samsung.com>
Tue, 14 Sep 2021 11:01:34 +0000 (13:01 +0200)
Fitness/Services/ScreenActivityService.cs

index 1d83aea2247d1a70674bc9a40ef9e2f9ae6bc540..c1e8fd01820b5df2684e8fff30966d407552ffdf 100644 (file)
@@ -8,16 +8,16 @@ namespace Fitness.Services
     /// </summary>
     public class ScreenActivityService : IDisposable
     {
+        private const uint ActivityInterval = 3000;
         private readonly Window win = NUIApplication.GetDefaultWindow();
-        private Timer activityTimer;
-        private uint activatyInterval = 3000;
+        private readonly Timer activityTimer;
 
         /// <summary>
         /// Initializes a new instance of the <see cref="ScreenActivityService"/> class.
         /// </summary>
         public ScreenActivityService()
         {
-            activityTimer = new Timer(activatyInterval);
+            activityTimer = new Timer(ActivityInterval);
             activityTimer.Tick += ActivatyTimer_Tick;
             win.TouchEvent += Win_TouchEvent;
         }