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

Commit 03e7432c authored by Michael Mikhail's avatar Michael Mikhail
Browse files

Adjust gravity of title and subtitle to follow layout direction

Flag: EXEMPT BUGFIX
Bug: 412971696
Test: Checked UI and changed languages.
Change-Id: Id5891ceaad60e9fe6b2261e4c6b3183db3ab1a23
parent fab8de21
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -28,6 +28,7 @@ import android.provider.Settings
import android.provider.Settings.ACTION_MEDIA_CONTROLS_SETTINGS
import android.provider.Settings.ACTION_MEDIA_CONTROLS_SETTINGS
import android.util.Log
import android.util.Log
import android.util.MathUtils
import android.util.MathUtils
import android.view.Gravity
import android.view.LayoutInflater
import android.view.LayoutInflater
import android.view.View
import android.view.View
import android.view.ViewGroup
import android.view.ViewGroup
@@ -770,6 +771,8 @@ constructor(
            if (existingPlayer == null) {
            if (existingPlayer == null) {
                bgExecutor.execute {
                bgExecutor.execute {
                    val mediaViewHolder = createMediaViewHolderInBg()
                    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.
                    // Add the new player in the main thread.
                    uiExecutor.execute {
                    uiExecutor.execute {
                        setupNewPlayer(key, data, curVisibleMediaKey, mediaViewHolder)
                        setupNewPlayer(key, data, curVisibleMediaKey, mediaViewHolder)