Skip to content

Commit

Permalink
Prevent Android from automatically locking display (#6876)
Browse files Browse the repository at this point in the history
As mentioned in #5759
  • Loading branch information
Wayward1 authored and nerzhul committed Jan 4, 2018
1 parent e7b44c3 commit ff2ceed
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -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 = "";

Expand Down

0 comments on commit ff2ceed

Please sign in to comment.