Call Toast directly from activity.
Toast behaves strangely when not called inside the activity directly.
This commit is contained in:
parent
d3665c6e4e
commit
6e3cea60f7
|
@ -33,7 +33,6 @@ public class DisplayRefreshRateTest extends Activity {
|
||||||
|
|
||||||
public Renderer(Activity activity) {
|
public Renderer(Activity activity) {
|
||||||
this.activity = activity;
|
this.activity = activity;
|
||||||
Toast.makeText(this.activity, "Touch the screen with your fingers for more accurate measurements.", Toast.LENGTH_LONG).show();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setFPSSetting(double fps) {
|
private void setFPSSetting(double fps) {
|
||||||
|
@ -107,6 +106,7 @@ public class DisplayRefreshRateTest extends Activity {
|
||||||
@Override
|
@Override
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
Toast.makeText(this, "Touch the screen with your fingers for more accurate measurements.", Toast.LENGTH_LONG).show();
|
||||||
surfaceView = new GLSurfaceView(this);
|
surfaceView = new GLSurfaceView(this);
|
||||||
surfaceView.setEGLConfigChooser(false);
|
surfaceView.setEGLConfigChooser(false);
|
||||||
surfaceView.setEGLContextClientVersion(2);
|
surfaceView.setEGLContextClientVersion(2);
|
||||||
|
|
Loading…
Reference in New Issue