Prevent Android from automatically locking display (#6876)
As mentioned in #5759
This commit is contained in:
parent
e7b44c3295
commit
ff2ceed381
@ -10,6 +10,7 @@ public class MtNativeActivity extends NativeActivity {
|
|||||||
@Override
|
@Override
|
||||||
public void onCreate(Bundle savedInstanceState) {
|
public void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
|
||||||
m_MessagReturnCode = -1;
|
m_MessagReturnCode = -1;
|
||||||
m_MessageReturnValue = "";
|
m_MessageReturnValue = "";
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user