Merge branch 'dev' into 'dev'

Add content description to the notification button

See merge request !11
This commit is contained in:
Alexey Kuznetsov 2017-07-02 16:28:34 +00:00
commit 688651c33b

View file

@ -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)