Commit 446c9943 by Googler Committed by Marc Baechinger

Fix blank toast in Transformer Demo

PiperOrigin-RevId: 480847967
parent 8962f5a3
......@@ -461,8 +461,7 @@ public final class TransformerActivity extends AppCompatActivity {
informationTextView.setText(R.string.transformation_error);
progressViewGroup.setVisibility(View.GONE);
debugFrame.removeAllViews();
Toast.makeText(
TransformerActivity.this, "Transformation error: " + exception, Toast.LENGTH_LONG)
Toast.makeText(getApplicationContext(), "Transformation error: " + exception, Toast.LENGTH_LONG)
.show();
Log.e(TAG, "Transformation error", exception);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment