nitunit: add option `--no-act` that does noes run the units
[nit.git] / src / android_platform.nit
index 3844328..070ac1e 100644 (file)
@@ -150,6 +150,7 @@ $(call import-module,android/native_app_glue)
              This will take care of integrating with our NDK code. -->
         <activity android:name="android.app.NativeActivity"
                 android:label="@string/app_name"
+                android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
                 android:configChanges="orientation|keyboardHidden"
                 android:screenOrientation="portrait">
             <!-- Tell NativeActivity the name of or .so -->
@@ -182,14 +183,9 @@ $(call import-module,android/native_app_glue)
                ### Link to png sources
                # libpng is not available on Android NDK
                # FIXME make obtionnal when we have alternatives to mnit
-               var nit_dir = "NIT_DIR".environ
-               var share_dir
-               if not nit_dir.is_empty then
-                       share_dir = "{nit_dir}/share/"
-               else
-                       share_dir = "{sys.program_name.dirname}/../share/"
-               end
-               if not share_dir.file_exists then 
+               var nit_dir = toolcontext.nit_dir
+               var share_dir =  "{nit_dir}/share/"
+               if nit_dir == null or not share_dir.file_exists then
                        print "Android project error: Nit share directory not found, please use the environment variable NIT_DIR"
                        exit 1
                end