Permalink
Browse files

Prevent Android from automatically locking display (#6876)

As mentioned in #5759
  • Loading branch information...
Wayward1 authored and nerzhul committed Jan 4, 2018
1 parent e7b44c3 commit ff2ceed381f0f9c7da5e147cdb9abf0118804ed6
Showing with 1 addition and 0 deletions.
  1. +1 −0 build/android/src/main/java/net.minetest.minetest/MtNativeActivity.java
@@ -10,6 +10,7 @@
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
m_MessagReturnCode = -1;
m_MessageReturnValue = "";

0 comments on commit ff2ceed

Please sign in to comment.