From ff2ceed381f0f9c7da5e147cdb9abf0118804ed6 Mon Sep 17 00:00:00 2001 From: Wayward One Date: Thu, 4 Jan 2018 15:18:18 -0500 Subject: Prevent Android from automatically locking display (#6876) As mentioned in #5759 --- build/android/src/main/java/net.minetest.minetest/MtNativeActivity.java | 1 + 1 file changed, 1 insertion(+) (limited to 'build/android') 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 = ""; -- cgit v1.2.3