Implement a playback speed toggle for voice notes.

This commit is contained in:
Alex Hart
2021-06-30 16:07:00 -03:00
parent e20d6b63cf
commit 2d7c043398
29 changed files with 754 additions and 175 deletions

View File

@@ -401,5 +401,16 @@
<item>@string/SoundsAndNotificationsSettingsFragment__always_notify</item>
<item>@string/SoundsAndNotificationsSettingsFragment__do_not_notify</item>
</string-array>
<integer-array name="PlaybackSpeedToggleTextView__speeds">
<item>100</item>
<item>200</item>
<item>50</item>
</integer-array>
<string-array name="PlaybackSpeedToggleTextView__speed_labels">
<item>@string/PlaybackSpeedToggleTextView__1x</item>
<item>@string/PlaybackSpeedToggleTextView__2x</item>
<item>@string/PlaybackSpeedToggleTextView__p5x</item>
</string-array>
</resources>

View File

@@ -170,6 +170,10 @@
<attr name="footer_text_color" format="color" />
<attr name="footer_icon_color" format="color" />
<attr name="footer_reveal_dot_color" format="color" />
<attr name="footer_mode" format="enum">
<enum name="outgoing" value="0" />
<enum name="incoming" value="1" />
</attr>
</declare-styleable>
<declare-styleable name="ConversationItemThumbnail">

View File

@@ -80,6 +80,9 @@
<color name="conversation_item_recv_icon_color">@color/core_grey_60</color>
<color name="conversation_item_quote_text_color">@color/core_grey_90</color>
<color name="conversation_item_wallpaper_bubble_color">@color/core_white</color>
<color name="conversation_item_incoming_audio_foreground_tint">@color/core_grey_60</color>
<color name="conversation_item_incoming_audio_play_pause_background_tint_normal">@color/transparent_white_80</color>
<color name="conversation_item_incoming_audio_play_pause_background_tint_wallpaper">@color/core_grey_05</color>
<color name="wallpaper_bubble_color">@color/transparent_white_80</color>

View File

@@ -3595,6 +3595,11 @@
<!-- StickerKeyboard -->
<string name="StickerKeyboard__recently_used">Recently used</string>
<!-- PlaybackSpeedToggleTextView -->
<string name="PlaybackSpeedToggleTextView__p5x">.5x</string>
<string name="PlaybackSpeedToggleTextView__1x">1x</string>
<string name="PlaybackSpeedToggleTextView__2x">2x</string>
<!-- EOF -->
</resources>