From 3ea3df33896198348fe2e69f4ecf4ffb5fdc03d1 Mon Sep 17 00:00:00 2001 From: Josh Kasten Date: Wed, 27 Oct 2021 19:46:35 -0700 Subject: [PATCH] Fix notification background image for RTL devices The notification background image would not show if the app has `android:supportsRtl="true"` the `AndroidManifest.xml` AND the device has a RTL language set. This would result in the notification becoming a sold color (all known instances have been a white background) and only the title and body text showing. Setting `android:layoutDirection="ltr"` ensures the layout, only used for images, isn't influenced by the language direction. This does NOT affect most notifications, only those that use `android_background_layout` in their notification payload. This change does NOT affect the rending of the title or body text in any way. --- .../src/main/res/layout/onesignal_bgimage_notif_layout.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/OneSignalSDK/onesignal/src/main/res/layout/onesignal_bgimage_notif_layout.xml b/OneSignalSDK/onesignal/src/main/res/layout/onesignal_bgimage_notif_layout.xml index d68e76965b..b89e7b330b 100644 --- a/OneSignalSDK/onesignal/src/main/res/layout/onesignal_bgimage_notif_layout.xml +++ b/OneSignalSDK/onesignal/src/main/res/layout/onesignal_bgimage_notif_layout.xml @@ -7,6 +7,7 @@