ci: propose a docker-compose to handle services tests locally
[nit.git] / lib / android / notification / notification.nit
index 07d1c00..0b6cb66 100644 (file)
@@ -16,7 +16,7 @@
 
 # Services to show notification in the Android status bar
 #
-# ~~~~
+# ~~~~nitish
 # # Create and show a notification
 # var notif = new Notification("My Title", "Some content")
 # notif.ticker = "Ticker text"
@@ -25,7 +25,7 @@
 # # Update the notification
 # notif.text = "New content!"
 # notif.ongoing = true # Make it un-dismissable
-# nofif.show
+# notif.show
 #
 # # Hide the notification
 # notif.cancel
@@ -35,7 +35,7 @@
 # http://developer.android.com/guide/topics/ui/notifiers/notifications.html
 module notification
 
-import standard
+import core
 private import native_notification
 
 # An Android notification, shown at the top of the screen
@@ -109,7 +109,7 @@ class Notification
                if id != null then
                        sys.jni_env.push_local_frame(8)
 
-                       var manager = app.native_activity.notification_manager
+                       var manager = app.native_context.notification_manager
                        manager.cancel(tag.to_java_string, id)
 
                        self.id = null