navika icons added (#2985)
@@ -288,6 +288,7 @@ class MessageListAdapter(
|
||||
if (FirebaseRemoteConfigUtils.getBoolean(FirebaseRemoteConfigUtils.HUMANIZE_CHAT)) {
|
||||
if (showHumanIcon) {
|
||||
profileImage.visibility = View.VISIBLE
|
||||
setNavikaIcon(profileImage)
|
||||
} else {
|
||||
profileImage.visibility = View.INVISIBLE
|
||||
}
|
||||
@@ -410,6 +411,7 @@ class MessageListAdapter(
|
||||
itemView.findViewById(R.id.image_message_profile) as ImageView
|
||||
if (FirebaseRemoteConfigUtils.getBoolean(FirebaseRemoteConfigUtils.HUMANIZE_CHAT)) {
|
||||
profileImage.visibility = View.VISIBLE
|
||||
setNavikaIcon(profileImage)
|
||||
} else {
|
||||
profileImage.visibility = View.GONE
|
||||
}
|
||||
@@ -427,6 +429,7 @@ class MessageListAdapter(
|
||||
if (FirebaseRemoteConfigUtils.getBoolean(FirebaseRemoteConfigUtils.HUMANIZE_CHAT)) {
|
||||
binding.title.visibility = View.VISIBLE
|
||||
binding.advisorImage.visibility = View.VISIBLE
|
||||
setNavikaIcon(binding.advisorImage)
|
||||
} else {
|
||||
binding.title.visibility = View.GONE
|
||||
binding.advisorImage.visibility = View.GONE
|
||||
@@ -441,9 +444,21 @@ class MessageListAdapter(
|
||||
itemView.findViewById(R.id.image_message_profile) as ImageView
|
||||
if (FirebaseRemoteConfigUtils.getBoolean(FirebaseRemoteConfigUtils.HUMANIZE_CHAT)) {
|
||||
profileImage.visibility = View.VISIBLE
|
||||
setNavikaIcon(profileImage)
|
||||
} else {
|
||||
profileImage.visibility = View.GONE
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
companion object {
|
||||
fun setNavikaIcon(imageView: ImageView) {
|
||||
when (FirebaseRemoteConfigUtils.getString(FirebaseRemoteConfigUtils.HUMANIZE_CHAT_ICON)) {
|
||||
"navika" -> imageView.setImageResource(R.drawable.navika)
|
||||
"drnavika" -> imageView.setImageResource(R.drawable.drnavika)
|
||||
"navik" -> imageView.setImageResource(R.drawable.navik)
|
||||
"drnavik" -> imageView.setImageResource(R.drawable.drnavik)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -44,6 +44,7 @@ object FirebaseRemoteConfigUtils {
|
||||
const val APOLOGY_LOADER_DELAY_IN_MILLS = "APOLOGY_LOADER_DELAY_IN_MILLS"
|
||||
const val MANDATE_STRATEGY_FROM_QUOTE = "MANDATE_STRATEGY_FROM_QUOTE"
|
||||
const val HUMANIZE_CHAT = "HUMANIZE_CHAT"
|
||||
const val HUMANIZE_CHAT_ICON = "HUMANIZE_CHAT_ICON"
|
||||
const val HUMANIZE_CHAT_TITLE = "HUMANIZE_CHAT_TITLE"
|
||||
const val REQUEST_CALLBACK_SUBTITLE = "REQUEST_CALLBACK_SUBTITLE"
|
||||
const val LANDING_PAGE_AB = "LANDING_PAGE_AB"
|
||||
|
||||
BIN
navi-insurance/src/main/res/drawable-hdpi/drnavik.png
Normal file
|
After Width: | Height: | Size: 8.1 KiB |
BIN
navi-insurance/src/main/res/drawable-hdpi/drnavika.png
Normal file
|
After Width: | Height: | Size: 8.8 KiB |
BIN
navi-insurance/src/main/res/drawable-hdpi/navik.png
Normal file
|
After Width: | Height: | Size: 8.2 KiB |
BIN
navi-insurance/src/main/res/drawable-xhdpi/drnavik.png
Normal file
|
After Width: | Height: | Size: 13 KiB |
BIN
navi-insurance/src/main/res/drawable-xhdpi/drnavika.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
navi-insurance/src/main/res/drawable-xhdpi/navik.png
Normal file
|
After Width: | Height: | Size: 13 KiB |
BIN
navi-insurance/src/main/res/drawable-xxhdpi/drnavik.png
Normal file
|
After Width: | Height: | Size: 25 KiB |
BIN
navi-insurance/src/main/res/drawable-xxhdpi/drnavika.png
Normal file
|
After Width: | Height: | Size: 27 KiB |
BIN
navi-insurance/src/main/res/drawable-xxhdpi/navik.png
Normal file
|
After Width: | Height: | Size: 23 KiB |
BIN
navi-insurance/src/main/res/drawable-xxxhdpi/drnavik.png
Normal file
|
After Width: | Height: | Size: 40 KiB |
BIN
navi-insurance/src/main/res/drawable-xxxhdpi/drnavika.png
Normal file
|
After Width: | Height: | Size: 42 KiB |
BIN
navi-insurance/src/main/res/drawable-xxxhdpi/navik.png
Normal file
|
After Width: | Height: | Size: 36 KiB |
BIN
navi-insurance/src/main/res/drawable/drnavik.png
Normal file
|
After Width: | Height: | Size: 4.1 KiB |
BIN
navi-insurance/src/main/res/drawable/drnavika.png
Normal file
|
After Width: | Height: | Size: 4.5 KiB |
BIN
navi-insurance/src/main/res/drawable/navik.png
Normal file
|
After Width: | Height: | Size: 4.3 KiB |
@@ -13,7 +13,7 @@
|
||||
android:id="@+id/advisor_image"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/navika"
|
||||
tools:srcCompat="@drawable/navika"
|
||||
android:layout_marginBottom="@dimen/dp_10"
|
||||
android:contentDescription="@string/insurance_advisor" />
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
android:background="@drawable/circle"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:srcCompat="@drawable/navika" />
|
||||
tools:srcCompat="@drawable/navika" />
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="0dp"
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
android:layout_height="32dp"
|
||||
android:layout_marginLeft="8dp"
|
||||
android:background="@drawable/circle"
|
||||
app:srcCompat="@drawable/navika"
|
||||
tools:srcCompat="@drawable/navika"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintLeft_toLeftOf="parent" />
|
||||
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:paddingTop="8dp">
|
||||
|
||||
<ImageView
|
||||
@@ -19,7 +20,7 @@
|
||||
android:layout_height="32dp"
|
||||
android:layout_marginLeft="8dp"
|
||||
android:background="@drawable/circle"
|
||||
app:srcCompat="@drawable/navika"
|
||||
tools:srcCompat="@drawable/navika"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent" />
|
||||
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:paddingTop="8dp">
|
||||
|
||||
<ImageView
|
||||
@@ -19,7 +20,7 @@
|
||||
android:layout_height="32dp"
|
||||
android:layout_marginLeft="8dp"
|
||||
android:background="@drawable/circle"
|
||||
app:srcCompat="@drawable/navika"
|
||||
tools:srcCompat="@drawable/navika"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent" />
|
||||
<LinearLayout
|
||||
|
||||
@@ -299,6 +299,10 @@
|
||||
<key>HUMANIZE_CHAT</key>
|
||||
<value>true</value>
|
||||
</entry>
|
||||
<entry>
|
||||
<key>HUMANIZE_CHAT_ICON</key>
|
||||
<value>navika</value>
|
||||
</entry>
|
||||
<entry>
|
||||
<key>HUMANIZE_CHAT_TITLE</key>
|
||||
<value>You are connected to Navika,NEW_LINEOur own insurance advisor</value>
|
||||
|
||||