projects
/
profile
/
iot
/
apps
/
dotnet
/
fitness.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
30ea50f
)
Blocked display timeout while running.
author
Andrzej Krawczyk
<a.krawczyk@samsung.com>
Tue, 31 Aug 2021 12:45:26 +0000
(14:45 +0200)
committer
Piotr Czaja
<p.czaja@samsung.com>
Tue, 14 Sep 2021 11:01:36 +0000
(13:01 +0200)
Fitness/FitnessApp.cs
patch
|
blob
|
history
diff --git
a/Fitness/FitnessApp.cs
b/Fitness/FitnessApp.cs
index 36fb80b0e2d07d23e8bed09dca211f0f188bcf1c..44f329a2a7f39350355544e31a61690c6c96c68d 100644
(file)
--- a/
Fitness/FitnessApp.cs
+++ b/
Fitness/FitnessApp.cs
@@
-1,7
+1,5
@@
-using System;
-using Fitness.Services;
+using Fitness.Services;
using Tizen.NUI;
-using Tizen.NUI.BaseComponents;
namespace Fitness
{
@@
-27,5
+25,17
@@
namespace Fitness
NUIContext.Initialize();
}
+
+ protected override void OnResume()
+ {
+ base.OnResume();
+ DisplayTimeoutService.Instance.IsTimeoutBlocked = true;
+ }
+
+ protected override void OnPause()
+ {
+ base.OnResume();
+ DisplayTimeoutService.Instance.IsTimeoutBlocked = false;
+ }
}
}