navika icons added (#2985)

This commit is contained in:
Rupam Ghosh
2022-05-16 20:04:11 +05:30
committed by GitHub Enterprise
parent cdc716b581
commit 88d349ebf6
23 changed files with 27 additions and 5 deletions

View File

@@ -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)
}
}
}
}

View File

@@ -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"

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

View File

@@ -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" />

View File

@@ -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"

View File

@@ -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" />

View File

@@ -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" />

View File

@@ -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

View File

@@ -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>