aboutsummaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorWayward One <calmthefirewithin@gmail.com>2018-01-04 15:18:18 -0500
committerLoïc Blot <nerzhul@users.noreply.github.com>2018-01-04 21:18:18 +0100
commitff2ceed381f0f9c7da5e147cdb9abf0118804ed6 (patch)
tree63deceed053ef4d1bc925294e145ed03b3843d41 /build
parente7b44c3295b904ee12ed4192ea4feff4ea4c6226 (diff)
downloadminetest-ff2ceed381f0f9c7da5e147cdb9abf0118804ed6.tar.gz
minetest-ff2ceed381f0f9c7da5e147cdb9abf0118804ed6.tar.bz2
minetest-ff2ceed381f0f9c7da5e147cdb9abf0118804ed6.zip
Prevent Android from automatically locking display (#6876)
As mentioned in #5759
Diffstat (limited to 'build')
-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 = "";