Fix blank toast in Transformer Demo

PiperOrigin-RevId: 480847967
This commit is contained in:
Googler 2022-10-13 10:32:32 +00:00 committed by Marc Baechinger
parent 2786db9e73
commit 7e8f0f0918

View File

@ -460,8 +460,7 @@ public final class TransformerActivity extends AppCompatActivity {
informationTextView.setText(R.string.transformation_error); informationTextView.setText(R.string.transformation_error);
progressViewGroup.setVisibility(View.GONE); progressViewGroup.setVisibility(View.GONE);
debugFrame.removeAllViews(); debugFrame.removeAllViews();
Toast.makeText( Toast.makeText(getApplicationContext(), "Transformation error: " + exception, Toast.LENGTH_LONG)
TransformerActivity.this, "Transformation error: " + exception, Toast.LENGTH_LONG)
.show(); .show();
Log.e(TAG, "Transformation error", exception); Log.e(TAG, "Transformation error", exception);
} }