Update onError signature in donations sample app.

This commit is contained in:
Alex Hart 2021-11-29 10:25:37 -04:00
parent 4364e9513f
commit 31a815013e

View file

@ -79,15 +79,15 @@ public class MainActivity extends AppCompatActivity implements GooglePayApi.Paym
donateButton.setClickable(true);
}
@Override
public void onError() {
Toast.makeText(this, "ERROR", Toast.LENGTH_SHORT).show();
donateButton.setClickable(true);
}
@Override
public void onCancelled() {
Toast.makeText(this, "CANCELLED", Toast.LENGTH_SHORT).show();
donateButton.setClickable(true);
}
@Override
public void onError(@NonNull GooglePayApi.GooglePayException googlePayException) {
Toast.makeText(this, "ERROR", Toast.LENGTH_SHORT).show();
donateButton.setClickable(true);
}
}