Skip to content

Commit a023c9e

Browse files
committed
Add text direction locale to BGR img layout notifs
Render OneSignal's custom background image notfications in RTL (right-to-left) for those devices that have set a language that renders in this direction. This does not account for some spacing issues however the next commit will cover this.
1 parent 89272de commit a023c9e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

OneSignalSDK/onesignal/src/main/res/layout/onesignal_bgimage_notif_layout.xml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,12 @@
3030
</RelativeLayout>
3131

3232
<LinearLayout
33-
xmlns:tools="http://schemas.android.com/tools"
34-
tools:ignore="RtlCompat"
35-
3633
android:orientation="vertical"
3734
android:layout_marginStart="@android:dimen/notification_large_icon_width"
3835
android:layout_width="fill_parent"
39-
android:layout_height="64dp">
36+
android:layout_height="64dp"
37+
android:textDirection="locale"
38+
>
4039
<TextView
4140
android:id="@+id/os_bgimage_notif_title"
4241
android:layout_width="match_parent"

0 commit comments

Comments
 (0)