mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-26 01:30:51 +00:00
(Android) keep screen on for refresh rate test
This commit is contained in:
parent
cb41874e15
commit
a5f174c9ab
@ -10,6 +10,7 @@ import android.opengl.GLSurfaceView;
|
||||
import android.os.Bundle;
|
||||
import android.preference.PreferenceManager;
|
||||
import android.util.Log;
|
||||
import android.view.WindowManager;
|
||||
|
||||
public class DisplayRefreshRateTest extends Activity {
|
||||
|
||||
@ -108,6 +109,7 @@ public class DisplayRefreshRateTest extends Activity {
|
||||
surfaceView.setEGLConfigChooser(false);
|
||||
surfaceView.setEGLContextClientVersion(2);
|
||||
surfaceView.setRenderer(new Renderer(this));
|
||||
getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
|
||||
setTitle("Refresh rate calibration");
|
||||
setContentView(surfaceView);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user