From b43399cc02da0a9f5d88b8b74b87b4a4492560c0 Mon Sep 17 00:00:00 2001 From: Hemanth S Date: Sat, 6 Jun 2020 12:03:37 +0530 Subject: [PATCH] Fixed truncating total time in now playing themes --- .../player/normal/PlayerPlaybackControlsFragment.kt | 12 +++++------- app/src/main/res/layout-land/activity_drive_mode.xml | 4 ++-- .../main/res/layout-land/fragment_circle_player.xml | 4 ++-- .../fragment_player_playback_controls.xml | 4 ++-- app/src/main/res/layout/activity_drive_mode.xml | 4 ++-- .../fragment_adaptive_player_playback_controls.xml | 4 ++-- .../fragment_blur_player_playback_controls.xml | 6 +++--- .../fragment_card_player_playback_controls.xml | 4 ++-- app/src/main/res/layout/fragment_circle_player.xml | 4 ++-- .../main/res/layout/fragment_classic_controls.xml | 4 ++-- .../fragment_color_player_playback_controls.xml | 6 +++--- .../res/layout/fragment_fit_playback_controls.xml | 4 ++-- .../fragment_flat_player_playback_controls.xml | 6 +++--- .../res/layout/fragment_full_player_controls.xml | 6 +++--- .../main/res/layout/fragment_gradient_controls.xml | 6 +++--- .../fragment_lock_screen_playback_controls.xml | 6 +++--- .../layout/fragment_material_playback_controls.xml | 6 +++--- .../main/res/layout/fragment_peak_control_player.xml | 6 +++--- .../res/layout/fragment_plain_controls_fragment.xml | 6 +++--- .../res/layout/fragment_player_playback_controls.xml | 6 +++--- 20 files changed, 53 insertions(+), 55 deletions(-) diff --git a/app/src/main/java/code/name/monkey/retromusic/fragments/player/normal/PlayerPlaybackControlsFragment.kt b/app/src/main/java/code/name/monkey/retromusic/fragments/player/normal/PlayerPlaybackControlsFragment.kt index 865d9082..cc382204 100644 --- a/app/src/main/java/code/name/monkey/retromusic/fragments/player/normal/PlayerPlaybackControlsFragment.kt +++ b/app/src/main/java/code/name/monkey/retromusic/fragments/player/normal/PlayerPlaybackControlsFragment.kt @@ -220,7 +220,7 @@ class PlayerPlaybackControlsFragment : AbsPlayerControlsFragment() { } public override fun show() { - playPauseButton!!.animate() + playPauseButton.animate() .scaleX(1f) .scaleY(1f) .rotation(360f) @@ -229,12 +229,10 @@ class PlayerPlaybackControlsFragment : AbsPlayerControlsFragment() { } public override fun hide() { - if (playPauseButton != null) { - playPauseButton!!.apply { - scaleX = 0f - scaleY = 0f - rotation = 0f - } + playPauseButton.apply { + scaleX = 0f + scaleY = 0f + rotation = 0f } } diff --git a/app/src/main/res/layout-land/activity_drive_mode.xml b/app/src/main/res/layout-land/activity_drive_mode.xml index 303ec1e4..abf70699 100644 --- a/app/src/main/res/layout-land/activity_drive_mode.xml +++ b/app/src/main/res/layout-land/activity_drive_mode.xml @@ -201,7 +201,7 @@ app:layout_constraintBottom_toTopOf="@id/playPauseButton" app:layout_constraintStart_toStartOf="@id/repeatButton" tools:ignore="RtlHardcoded,RtlSymmetry" - tools:text="00:22" /> + tools:text="@tools:sample/date/hhmmss" /> + tools:text="@tools:sample/date/hhmmss" /> \ No newline at end of file diff --git a/app/src/main/res/layout-land/fragment_circle_player.xml b/app/src/main/res/layout-land/fragment_circle_player.xml index e3d9a533..601bf5d1 100644 --- a/app/src/main/res/layout-land/fragment_circle_player.xml +++ b/app/src/main/res/layout-land/fragment_circle_player.xml @@ -185,7 +185,7 @@ app:layout_constraintStart_toEndOf="@id/progressSlider" app:layout_constraintTop_toTopOf="@id/progressSlider" tools:ignore="RtlHardcoded,RtlSymmetry" - tools:text="00:22" /> + tools:text="@tools:sample/date/hhmmss" /> + tools:text="@tools:sample/date/hhmmss" /> + tools:text="@tools:sample/date/hhmmss" /> + tools:text="@tools:sample/date/hhmmss" /> + tools:text="@tools:sample/date/hhmmss" /> + tools:text="@tools:sample/date/hhmmss" /> \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_adaptive_player_playback_controls.xml b/app/src/main/res/layout/fragment_adaptive_player_playback_controls.xml index 6d132534..afcea173 100644 --- a/app/src/main/res/layout/fragment_adaptive_player_playback_controls.xml +++ b/app/src/main/res/layout/fragment_adaptive_player_playback_controls.xml @@ -21,7 +21,7 @@ app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="@id/progressSlider" tools:ignore="RtlHardcoded,RtlSymmetry" - tools:text="00:22" /> + tools:text="@tools:sample/date/hhmmss" /> + tools:text="@tools:sample/date/hhmmss" /> + tools:text="@tools:sample/date/hhmmss" /> + tools:text="@tools:sample/date/hhmmss" /> + tools:text="@tools:sample/date/hhmmss" /> + tools:text="@tools:sample/date/hhmmss" /> + tools:text="@tools:sample/date/hhmmss" /> + tools:text="@tools:sample/date/hhmmss" /> + tools:text="@tools:sample/date/hhmmss" /> + tools:text="@tools:sample/date/hhmmss" /> diff --git a/app/src/main/res/layout/fragment_color_player_playback_controls.xml b/app/src/main/res/layout/fragment_color_player_playback_controls.xml index 4f01e863..1926d3f3 100644 --- a/app/src/main/res/layout/fragment_color_player_playback_controls.xml +++ b/app/src/main/res/layout/fragment_color_player_playback_controls.xml @@ -21,7 +21,7 @@ app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="@id/progressSlider" tools:ignore="RtlHardcoded,RtlSymmetry" - tools:text="00:22" /> + tools:text="@tools:sample/date/hhmmss" /> + tools:text="@tools:sample/date/hhmmss" /> + tools:text="@tools:sample/date/hhmmss" /> + tools:text="@tools:sample/date/hhmmss" /> + tools:text="@tools:sample/date/hhmmss" /> + tools:text="@tools:sample/date/hhmmss" /> + tools:text="@tools:sample/date/hhmmss" /> + tools:text="@tools:sample/date/hhmmss" /> + tools:text="@tools:sample/date/hhmmss" /> + tools:text="@tools:sample/date/hhmmss" /> + tools:text="@tools:sample/date/hhmmss" /> + tools:text="@tools:sample/date/hhmmss" /> + tools:text="@tools:sample/date/hhmmss" /> + tools:text="@tools:sample/date/hhmmss" /> + tools:text="@tools:sample/date/hhmmss" /> + tools:text="@tools:sample/date/hhmmss" /> + tools:text="@tools:sample/date/hhmmss" /> + tools:text="@tools:sample/date/hhmmss" /> + tools:text="@tools:sample/date/hhmmss" /> + tools:text="@tools:sample/date/hhmmss" />