Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 45bb23b3 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Adjust gravity of title and subtitle to follow layout direction" into main

parents 27dc6d58 03e7432c
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -28,6 +28,7 @@ import android.provider.Settings
import android.provider.Settings.ACTION_MEDIA_CONTROLS_SETTINGS
import android.util.Log
import android.util.MathUtils
import android.view.Gravity
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
@@ -770,6 +771,8 @@ constructor(
            if (existingPlayer == null) {
                bgExecutor.execute {
                    val mediaViewHolder = createMediaViewHolderInBg()
                    mediaViewHolder.titleText.gravity = if (isRtl) Gravity.RIGHT else Gravity.LEFT
                    mediaViewHolder.artistText.gravity = if (isRtl) Gravity.RIGHT else Gravity.LEFT
                    // Add the new player in the main thread.
                    uiExecutor.execute {
                        setupNewPlayer(key, data, curVisibleMediaKey, mediaViewHolder)