Commit 0951cb05 authored by Leonardo Aramaki's avatar Leonardo Aramaki

Fix ids on the skin tone layout

parent 0267d882
...@@ -80,44 +80,44 @@ class EmojiKeyboardPopup(context: Context, view: View) : OverKeyboardPopupWindow ...@@ -80,44 +80,44 @@ class EmojiKeyboardPopup(context: Context, view: View) : OverKeyboardPopupWindow
.setCancelable(true) .setCancelable(true)
.create() .create()
view.findViewById<TextView>(R.id.default_tone_text)?.also { view.findViewById<TextView>(R.id.default_tone_text).also {
it.text = EmojiParser.parse(it.text) it.text = EmojiParser.parse(it.text)
}?.setOnClickListener { }.setOnClickListener {
dialog.dismiss() dialog.dismiss()
changeSkinTone(Fitzpatrick.Default) changeSkinTone(Fitzpatrick.Default)
} }
view.findViewById<TextView>(R.id.light_tone_text)?.also { view.findViewById<TextView>(R.id.light_tone_text).also {
it.text = EmojiParser.parse(it.text) it.text = EmojiParser.parse(it.text)
}?.setOnClickListener { }.setOnClickListener {
dialog.dismiss() dialog.dismiss()
changeSkinTone(Fitzpatrick.LightTone) changeSkinTone(Fitzpatrick.LightTone)
} }
view.findViewById<TextView>(R.id.medium_light_text)?.also { view.findViewById<TextView>(R.id.medium_light_text).also {
it.text = EmojiParser.parse(it.text) it.text = EmojiParser.parse(it.text)
}?.setOnClickListener { }.setOnClickListener {
dialog.dismiss() dialog.dismiss()
changeSkinTone(Fitzpatrick.MediumLightTone) changeSkinTone(Fitzpatrick.MediumLightTone)
} }
view.findViewById<TextView>(R.id.medium_image_view)?.also { view.findViewById<TextView>(R.id.medium_tone_text).also {
it.text = EmojiParser.parse(it.text) it.text = EmojiParser.parse(it.text)
}?.setOnClickListener { }.setOnClickListener {
dialog.dismiss() dialog.dismiss()
changeSkinTone(Fitzpatrick.MediumTone) changeSkinTone(Fitzpatrick.MediumTone)
} }
view.findViewById<TextView>(R.id.medium_dark_tone_text)?.also { view.findViewById<TextView>(R.id.medium_dark_tone_text).also {
it.text = EmojiParser.parse(it.text) it.text = EmojiParser.parse(it.text)
}?.setOnClickListener { }.setOnClickListener {
dialog.dismiss() dialog.dismiss()
changeSkinTone(Fitzpatrick.MediumDarkTone) changeSkinTone(Fitzpatrick.MediumDarkTone)
} }
view.findViewById<TextView>(R.id.dark_tone_text)?.also { view.findViewById<TextView>(R.id.dark_tone_text).also {
it.text = EmojiParser.parse(it.text) it.text = EmojiParser.parse(it.text)
}?.setOnClickListener { }.setOnClickListener {
dialog.dismiss() dialog.dismiss()
changeSkinTone(Fitzpatrick.DarkTone) changeSkinTone(Fitzpatrick.DarkTone)
} }
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
app:srcCompat="@drawable/color_change_circle" /> app:srcCompat="@drawable/color_change_circle" />
<TextView <TextView
android:id="@+id/light_image_view" android:id="@+id/light_tone_text"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="24dp" android:layout_marginStart="24dp"
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
tools:text="👌" /> tools:text="👌" />
<TextView <TextView
android:id="@+id/medium_light_image_view" android:id="@+id/medium_light_text"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="16dp" android:layout_marginTop="16dp"
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
tools:text="👌" /> tools:text="👌" />
<TextView <TextView
android:id="@+id/medium_image_view" android:id="@+id/medium_tone_text"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="8dp" android:layout_marginTop="8dp"
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
tools:text="👌" /> tools:text="👌" />
<TextView <TextView
android:id="@+id/medium_dark_image_view" android:id="@+id/medium_dark_tone_text"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="24dp" android:layout_marginStart="24dp"
...@@ -83,13 +83,13 @@ ...@@ -83,13 +83,13 @@
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@+id/dark_tone_text" app:layout_constraintEnd_toStartOf="@+id/dark_tone_text"
app:layout_constraintHorizontal_bias="0.5" app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toEndOf="@+id/medium_image_view" app:layout_constraintStart_toEndOf="@+id/medium_tone_text"
app:layout_constraintTop_toBottomOf="@+id/light_tone_text" app:layout_constraintTop_toBottomOf="@+id/light_tone_text"
app:srcCompat="@drawable/color_change_circle" app:srcCompat="@drawable/color_change_circle"
tools:text="👌" /> tools:text="👌" />
<TextView <TextView
android:id="@+id/dark_image_view" android:id="@+id/dark_tone_text"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="8dp" android:layout_marginTop="8dp"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment