Added Support for Opacity in Color code for chat background.
@@ -448,9 +448,10 @@ public abstract class MobiComConversationFragment extends Fragment implements Vi
if (!TextUtils.isEmpty(alCustomizationSettings.getChatBackgroundColorOrDrawable())) {
String customChatBackground = alCustomizationSettings.getChatBackgroundColorOrDrawable();
-
- if (customChatBackground.contains("#") && customChatBackground.length() >= 7){
+ if (customChatBackground.contains("#")) {
+ if(customChatBackground.length() == 7 || customChatBackground.length() == 9){
conversationRootLayout.setBackgroundColor(Color.parseColor(alCustomizationSettings.getChatBackgroundColorOrDrawable()));
+ }
} else {
Resources resources = getResources();
int resourceId = resources.getIdentifier(customChatBackground, "drawable", getContext().getPackageName());
@@ -461,6 +462,7 @@ public abstract class MobiComConversationFragment extends Fragment implements Vi
}
}
+
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
