lib/android: Added import and fixed typo
authorFrédéric Vachon <fredvac@gmail.com>
Tue, 15 Jul 2014 21:10:24 +0000 (17:10 -0400)
committerFrédéric Vachon <fredvac@gmail.com>
Tue, 15 Jul 2014 21:10:24 +0000 (17:10 -0400)
Signed-off-by: Frédéric Vachon <fredvac@gmail.com>

lib/android/shared_preferences/shared_preferences_api11.nit

index 4a87478..4709ca5 100644 (file)
@@ -22,6 +22,7 @@ import shared_preferences
 in "Java" `{ 
        import java.util.HashSet;
        import java.util.Set;
+       import android.content.Context; 
 `}
 
 redef extern class NativeSharedPreferences
@@ -66,7 +67,7 @@ redef class SharedPreferences
        end
 
        # File access mode
-       private fun multi_process_mode: Int in "Java" `{ return Content.MODE_MULTI_PROCESS; `}
+       private fun multi_process_mode: Int in "Java" `{ return Context.MODE_MULTI_PROCESS; `}
 
        # Returns the `HashSet[JavaString]` value corresponding the given key or `null` if none
        #