Prevent Android from automatically locking display (#6876)

As mentioned in #5759
master
Wayward One 2018-01-04 15:18:18 -05:00 committed by Loïc Blot
parent e7b44c3295
commit ff2ceed381
1 changed files with 1 additions and 0 deletions

View File

@ -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 = "";