Created
March 29, 2018 16:47
-
-
Save ataulm/fdb37a00dddf249699ec6027466a0081 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Handles {@link FeedbackFragment} with {@link ClickableSpan} (including {@link URLSpan]}). Adds | |
* earcon and pitch information to the fragment. | |
* | |
* @param fragment The fragment containing {@link ClickableSpan}. | |
*/ | |
private static void handleClickableSpan(FeedbackFragment fragment) { | |
final Bundle speechParams = new Bundle(Bundle.EMPTY); | |
speechParams.putFloat(SpeechParam.PITCH, PITCH_CHANGE_HYPERLINK); | |
fragment.setSpeechParams(speechParams); | |
fragment.addEarcon(R.raw.hyperlink); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment