nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56c217b
)
android: pause on lost focus too
author
Alexis Laferrière
<alexis.laf@xymus.net>
Tue, 10 Jun 2014 00:34:09 +0000
(20:34 -0400)
committer
Alexis Laferrière
<alexis.laf@xymus.net>
Tue, 10 Jun 2014 15:47:42 +0000
(11:47 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
lib/android/android.nit
patch
|
blob
|
history
diff --git
a/lib/android/android.nit
b/lib/android/android.nit
index
2ceee28
..
5191e3f
100644
(file)
--- a/
lib/android/android.nit
+++ b/
lib/android/android.nit
@@
-75,4
+75,16
@@
redef class App
paused = false
super
end
+
+ redef fun lost_focus
+ do
+ paused = true
+ super
+ end
+
+ redef fun gained_focus
+ do
+ paused = false
+ super
+ end
end