mirror of
https://github.com/minetest/minetest.git
synced 2024-08-18 20:44:16 +02:00
Android: Minor Code Improvements (#13342)
This commit is contained in:
parent
73391013f7
commit
d39a07efea
@ -6,6 +6,7 @@
|
|||||||
|
|
||||||
<uses-permission android:name="android.permission.INTERNET" />
|
<uses-permission android:name="android.permission.INTERNET" />
|
||||||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
|
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
|
||||||
|
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
|
||||||
<uses-feature android:glEsVersion="0x00020000" />
|
<uses-feature android:glEsVersion="0x00020000" />
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
|
@ -23,7 +23,6 @@ package net.minetest.minetest;
|
|||||||
import android.app.NativeActivity;
|
import android.app.NativeActivity;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
import android.net.Uri;
|
import android.net.Uri;
|
||||||
import android.os.Build;
|
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.text.InputType;
|
import android.text.InputType;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
@ -64,7 +63,6 @@ public class GameActivity extends NativeActivity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void makeFullScreen() {
|
private void makeFullScreen() {
|
||||||
if (Build.VERSION.SDK_INT >= 19)
|
|
||||||
this.getWindow().getDecorView().setSystemUiVisibility(
|
this.getWindow().getDecorView().setSystemUiVisibility(
|
||||||
View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION |
|
View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION |
|
||||||
View.SYSTEM_UI_FLAG_HIDE_NAVIGATION |
|
View.SYSTEM_UI_FLAG_HIDE_NAVIGATION |
|
||||||
|
@ -182,9 +182,9 @@ public class UnzipService extends IntentService {
|
|||||||
try {
|
try {
|
||||||
Process p = new ProcessBuilder("/system/bin/mv",
|
Process p = new ProcessBuilder("/system/bin/mv",
|
||||||
src.getAbsolutePath(), dst.getAbsolutePath()).start();
|
src.getAbsolutePath(), dst.getAbsolutePath()).start();
|
||||||
int exitcode = p.waitFor();
|
int exitCode = p.waitFor();
|
||||||
if (exitcode != 0)
|
if (exitCode != 0)
|
||||||
throw new IOException("Move failed with exit code " + exitcode);
|
throw new IOException("Move failed with exit code " + exitCode);
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
throw new IOException("Move operation interrupted");
|
throw new IOException("Move operation interrupted");
|
||||||
}
|
}
|
||||||
|
@ -7,5 +7,5 @@ org.gradle.daemon=true
|
|||||||
org.gradle.parallel=true
|
org.gradle.parallel=true
|
||||||
org.gradle.parallel.threads=8
|
org.gradle.parallel.threads=8
|
||||||
org.gradle.configureondemand=true
|
org.gradle.configureondemand=true
|
||||||
android.enableJetifier=true
|
android.enableJetifier=false
|
||||||
android.useAndroidX=true
|
android.useAndroidX=true
|
||||||
|
Loading…
Reference in New Issue
Block a user