2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-19 09:25:34 +00:00

[fenix] For https://github.com/mozilla-mobile/fenix/issues/19213: Adjust synced tabs to properly show in RTL.

This commit is contained in:
mcarare 2021-04-23 18:33:52 +03:00 committed by Jonathan Almeida
parent 6acdc32aad
commit ee2e653ebb
3 changed files with 4 additions and 3 deletions

View File

@ -87,7 +87,7 @@ sealed class SyncedTabsViewHolder(itemView: View) : RecyclerView.ViewHolder(item
} }
itemView.synced_tabs_group_name.text = device.device.displayName itemView.synced_tabs_group_name.text = device.device.displayName
itemView.synced_tabs_group_name.setCompoundDrawablesWithIntrinsicBounds( itemView.synced_tabs_group_name.setCompoundDrawablesRelativeWithIntrinsicBounds(
deviceLogoDrawable, deviceLogoDrawable,
0, 0,
0, 0,

View File

@ -22,6 +22,7 @@
android:textAppearance="@style/Header14TextStyle" android:textAppearance="@style/Header14TextStyle"
android:textColor="@color/primary_text_normal_theme" android:textColor="@color/primary_text_normal_theme"
android:textSize="12sp" android:textSize="12sp"
android:textDirection="locale"
app:drawableStartCompat="@drawable/mozac_ic_device_desktop" app:drawableStartCompat="@drawable/mozac_ic_device_desktop"
app:drawableTint="@color/primary_text_normal_theme" app:drawableTint="@color/primary_text_normal_theme"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"

View File

@ -101,7 +101,7 @@ class SyncedTabsViewHolderTest {
verify { deviceViewGroupName.text = "Charcoal" } verify { deviceViewGroupName.text = "Charcoal" }
verify { verify {
deviceViewGroupName.setCompoundDrawablesWithIntrinsicBounds( deviceViewGroupName.setCompoundDrawablesRelativeWithIntrinsicBounds(
R.drawable.mozac_ic_device_desktop, 0, 0, 0 R.drawable.mozac_ic_device_desktop, 0, 0, 0
) )
} }
@ -117,7 +117,7 @@ class SyncedTabsViewHolderTest {
verify { deviceViewGroupName.text = "Emerald" } verify { deviceViewGroupName.text = "Emerald" }
verify { verify {
deviceViewGroupName.setCompoundDrawablesWithIntrinsicBounds( deviceViewGroupName.setCompoundDrawablesRelativeWithIntrinsicBounds(
R.drawable.mozac_ic_device_mobile, 0, 0, 0 R.drawable.mozac_ic_device_mobile, 0, 0, 0
) )
} }