aboutsummaryrefslogtreecommitdiff
path: root/build/android/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'build/android/src/main/java')
-rw-r--r--build/android/src/main/java/net.minetest.minetest/MtNativeActivity.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/build/android/src/main/java/net.minetest.minetest/MtNativeActivity.java b/build/android/src/main/java/net.minetest.minetest/MtNativeActivity.java
index 159521a50..ea3cec45f 100644
--- a/build/android/src/main/java/net.minetest.minetest/MtNativeActivity.java
+++ b/build/android/src/main/java/net.minetest.minetest/MtNativeActivity.java
@@ -10,6 +10,7 @@ public class MtNativeActivity extends NativeActivity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
+ getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
m_MessagReturnCode = -1;
m_MessageReturnValue = "";