Add content description to the notification button
This commit is contained in:
parent
234b933579
commit
4ce299ca37
1 changed files with 1 additions and 0 deletions
|
|
@ -199,6 +199,7 @@ public class RecordingService extends Service {
|
|||
view.setTextViewText(R.id.notification_text, text);
|
||||
view.setOnClickPendingIntent(R.id.notification_pause, pe);
|
||||
view.setImageViewResource(R.id.notification_pause, !recording ? R.drawable.ic_play_arrow_black_24dp : R.drawable.ic_pause_black_24dp);
|
||||
view.setContentDescription(R.id.notification_pause, getString(!recording ? R.string.record_button : R.string.pause_button));
|
||||
|
||||
NotificationCompat.Builder builder = new NotificationCompat.Builder(this)
|
||||
.setOngoing(true)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue