lib/android: use the more general NativeContext with annotations
authorAlexis Laferrière <alexis.laf@xymus.net>
Fri, 19 Feb 2016 23:41:36 +0000 (18:41 -0500)
committerAlexis Laferrière <alexis.laf@xymus.net>
Sat, 20 Feb 2016 02:37:45 +0000 (21:37 -0500)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

lib/android/notification/native_notification.nit

index 8de56eb..74e3b4c 100644 (file)
@@ -25,7 +25,7 @@ in "Java" `{
        import android.app.Notification;
 `}
 
-redef class NativeActivity
+redef class NativeContext
        fun notification_manager: NativeNotificationManager in "Java" `{
                return (NotificationManager)self.getSystemService(Context.NOTIFICATION_SERVICE);
        `}
@@ -47,7 +47,7 @@ end
 
 extern class NativeNotificationBuilder in "Java" `{ android.app.Notification$Builder `}
 
-       new (context: NativeActivity) in "Java" `{ return new Notification.Builder(context); `}
+       new (context: NativeContext) in "Java" `{ return new Notification.Builder(context); `}
 
        fun create: NativeNotification in "Java" `{
                // Deprecated since API 16, which introduces `build`,