diff --git a/app/src/main/java/com/google/ar/sceneform/samples/hellosceneform/HelloSceneformActivity.java b/app/src/main/java/com/google/ar/sceneform/samples/hellosceneform/HelloSceneformActivity.java index d4e5e82..cc747f3 100644 --- a/app/src/main/java/com/google/ar/sceneform/samples/hellosceneform/HelloSceneformActivity.java +++ b/app/src/main/java/com/google/ar/sceneform/samples/hellosceneform/HelloSceneformActivity.java @@ -55,7 +55,8 @@ return; } - setContentView(R.layout.activity_ux); + + setContentView(R.layout.activity_ux); arFragment = (ArFragment) getSupportFragmentManager().findFragmentById(R.id.ux_fragment); // When you build a Renderable, Sceneform loads its resources in the background while returning @@ -92,7 +93,13 @@ }); } - /** + + + + + + + /** * Returns false and displays an error message if Sceneform can not run, true if Sceneform can run * on this device. * @@ -115,6 +122,7 @@ Log.e(TAG, "Sceneform requires OpenGL ES 3.0 later"); Toast.makeText(activity, "Sceneform requires OpenGL ES 3.0 or later", Toast.LENGTH_LONG) .show(); + activity.finish(); return false; }