[Android] Make a field a local variable in DisplayRefreshRateTest. It's not used elsewhere, so this is safe.

This commit is contained in:
Lioncash 2013-11-25 09:57:06 -05:00
parent 95539090ec
commit 3579319573

View File

@ -107,13 +107,11 @@ public final class DisplayRefreshRateTest extends Activity {
}
}
private GLSurfaceView surfaceView;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Toast.makeText(this, R.string.touch_screen_with_fingers, Toast.LENGTH_LONG).show();
surfaceView = new GLSurfaceView(this);
final GLSurfaceView surfaceView = new GLSurfaceView(this);
surfaceView.setEGLContextClientVersion(2);
surfaceView.setRenderer(new Renderer(this));
getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);