[go: nahoru, domu]

Skip to content

Commit

Permalink
Fix blank toast in Transformer Demo
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 480847967
  • Loading branch information
Googler authored and marcbaechinger committed Oct 20, 2022
1 parent 8962f5a commit 446c994
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -461,8 +461,7 @@ private void onTransformationError(TransformationException exception) {
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);
}
Expand Down

0 comments on commit 446c994

Please sign in to comment.