diff options
author | Wayward One <calmthefirewithin@gmail.com> | 2018-01-04 15:18:18 -0500 |
---|---|---|
committer | Loïc Blot <nerzhul@users.noreply.github.com> | 2018-01-04 21:18:18 +0100 |
commit | ff2ceed381f0f9c7da5e147cdb9abf0118804ed6 (patch) | |
tree | 63deceed053ef4d1bc925294e145ed03b3843d41 /build/android/src/main/java/net.minetest.minetest | |
parent | e7b44c3295b904ee12ed4192ea4feff4ea4c6226 (diff) | |
download | minetest-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/android/src/main/java/net.minetest.minetest')
-rw-r--r-- | build/android/src/main/java/net.minetest.minetest/MtNativeActivity.java | 1 |
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 = ""; |