Call Toast directly from activity.

Toast behaves strangely when not called inside the activity directly.
This commit is contained in:
Themaister 2013-02-11 16:12:48 +01:00
parent d3665c6e4e
commit 6e3cea60f7

View File

@ -33,7 +33,6 @@ public class DisplayRefreshRateTest extends Activity {
public Renderer(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) {
@ -107,6 +106,7 @@ public class DisplayRefreshRateTest extends Activity {
@Override
protected void onCreate(Bundle 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.setEGLConfigChooser(false);
surfaceView.setEGLContextClientVersion(2);