nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge: Include extra Java files in a project
[nit.git]
/
lib
/
android
/
android.nit
diff --git
a/lib/android/android.nit
b/lib/android/android.nit
index
2ceee28
..
3fc1a09
100644
(file)
--- a/
lib/android/android.nit
+++ b/
lib/android/android.nit
@@
-75,4
+75,18
@@
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
+
+ redef fun destroy do exit 0
end