summaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
authoruabdullah <uabdullah@google.com>2017-12-11 15:20:15 -0800
committerCopybara-Service <copybara-piper@google.com>2017-12-11 15:23:08 -0800
commit1fab0cca2259a7f8dd0b4349bc38f282eb4209a8 (patch)
treea677be3a11bd33ba9aa9903cc868ec607fc213f4 /assets
parentc875a5b7630376c767d86b708e4aab8382de8acc (diff)
Play voicemails, update seekbar timer, allow seeking, and maintain state after recycling.
This CL adds the support for playing voicemails, changing the play button to pause button when playing the voicemail, updating the seekbar and duration timer when the voicemail is being played. It also adds the support to preserve the state of the media player such that when scrolling and recycling views, when an expanded and playing voicemail is recycled back into view, it's most recent state is shown i.e the duration and the seekbar are upto date. Video: https://drive.google.com/open?id=1CKbLK5-1YDeXBZFiKvuTxoPuFJQ1rbj7 Test: Unit tests PiperOrigin-RevId: 178681663 Change-Id: Ifdd1d945572926bdc7d652aa7a876d3156fc21ce
Diffstat (limited to 'assets')
-rw-r--r--assets/quantum/res/drawable/quantum_ic_pause_vd_theme_24.xml25
1 files changed, 25 insertions, 0 deletions
diff --git a/assets/quantum/res/drawable/quantum_ic_pause_vd_theme_24.xml b/assets/quantum/res/drawable/quantum_ic_pause_vd_theme_24.xml
new file mode 100644
index 000000000..b683a3b33
--- /dev/null
+++ b/assets/quantum/res/drawable/quantum_ic_pause_vd_theme_24.xml
@@ -0,0 +1,25 @@
+<!--
+ ~ Copyright (C) 2017 The Android Open Source Project
+ ~
+ ~ Licensed under the Apache License, Version 2.0 (the "License");
+ ~ you may not use this file except in compliance with the License.
+ ~ You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing, software
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ ~ See the License for the specific language governing permissions and
+ ~ limitations under the License
+ -->
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="24dp"
+ android:height="24dp"
+ android:viewportWidth="24.0"
+ android:viewportHeight="24.0"
+ android:tint="?attr/colorControlNormal">
+ <path
+ android:fillColor="@android:color/white"
+ android:pathData="M6,19h4L10,5L6,5v14zM14,5v14h4L18,5h-4z"/>
+</vector> \ No newline at end of file