code: replace `is cached` by `is lazy`
[nit.git] / lib / android / vibration.nit
index 6226285..79941dc 100644 (file)
@@ -26,7 +26,6 @@ import native_app_glue
 # Handle to an Android vibrator
 extern class Vibrator in "Java" `{ android.os.Vibrator `}
        super JavaObject
-       redef type SELF: Vibrator
 
        # Vibrate for `n` miliseconds
        fun vibrate(n: Int) in "Java" `{ recv.vibrate(n); `}
@@ -49,7 +48,7 @@ end
 
 redef class App
        # Get the handle to this device vibrator as a global ref
-       fun vibrator: Vibrator is cached do
+       var vibrator: Vibrator is lazy do
                var v = vibrator_native(native_activity)
                return v.new_global_ref
        end