Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix how the OnInitListener is invoked in ShadowTextToSpeech #6146

Merged
merged 1 commit into from
Jan 16, 2021

Commits on Jan 16, 2021

  1. Fix how the OnInitListener is invoked in ShadowTextToSpeech

    Previously, in ShadowTextToSpeech, the OnInitListener callback was always
    called inline with the ERROR code. Instead, default to calling it
    asynchronously with the SUCCESS code, which is what happens in real Android.
    
    In the case that tests want to check the error condition, add a new API
    ShadowTextToSpeech.setOnInitStatus(int) which can be used to set the status
    code used in the callback.
    
    PiperOrigin-RevId: 350776217
    hoisie committed Jan 16, 2021
    Configuration menu
    Copy the full SHA
    1d93497 View commit details
    Browse the repository at this point in the history