Commit 27bca4f2 authored by Sven Greiner's avatar Sven Greiner
Browse files

Android: Keep screen on

parent 80fd5c78
......@@ -2,6 +2,7 @@ package org.milderjoghurt.frozennumbers.android;
import android.os.Bundle;
import android.view.View;
import android.view.WindowManager;
import com.badlogic.gdx.backends.android.AndroidApplication;
import com.badlogic.gdx.backends.android.AndroidApplicationConfiguration;
......@@ -11,6 +12,7 @@ public class AndroidLauncher extends AndroidApplication {
@Override
protected void onCreate (Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
AndroidApplicationConfiguration config = new AndroidApplicationConfiguration();
initialize(new FrozenNumbersGame(), config);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment