Skip to content

Commit

Permalink
Use volume keys to set Media volume (used for TTS)
Browse files Browse the repository at this point in the history
  • Loading branch information
tkrajina committed Mar 14, 2017
1 parent 423ba2e commit c0d4a0d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import android.content.DialogInterface;
import android.content.Intent;
import android.databinding.DataBindingUtil;
import android.media.AudioManager;
import android.net.Uri;
import android.os.AsyncTask;
import android.os.Bundle;
Expand Down Expand Up @@ -155,6 +156,7 @@ public void onClick(View view) {
});

adjustFontSize();
setVolumeControlStream(AudioManager.STREAM_MUSIC);
}

private void setupAnswerButtons() {
Expand Down

0 comments on commit c0d4a0d

Please sign in to comment.