Migrate to emoji2

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
Andy Scherzinger 2022-12-05 18:20:20 +01:00 committed by Marcel Hibbe
parent b0a68e8193
commit 4c614c06ac
No known key found for this signature in database
GPG key ID: C793F8B59F43CE7B
39 changed files with 65 additions and 60 deletions

View file

@ -143,6 +143,7 @@ ext {
androidxCameraVersion = "1.1.0" androidxCameraVersion = "1.1.0"
coilKtVersion = "2.2.2" coilKtVersion = "2.2.2"
daggerVersion = "2.44.2" daggerVersion = "2.44.2"
emojiVersion = "1.2.0"
lifecycleVersion = '2.5.1' lifecycleVersion = '2.5.1'
okhttpVersion = "4.10.0" okhttpVersion = "4.10.0"
materialDialogsVersion = "3.3.0" materialDialogsVersion = "3.3.0"
@ -178,7 +179,10 @@ dependencies {
implementation 'com.google.android.material:material:1.7.0' implementation 'com.google.android.material:material:1.7.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4' implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation "com.vanniktech:emoji-google:0.15.0" implementation "com.vanniktech:emoji-google:0.15.0"
implementation group: 'androidx.emoji', name: 'emoji-bundled', version: '1.1.0' implementation "androidx.emoji2:emoji2:${emojiVersion}"
implementation "androidx.emoji2:emoji2-bundled:${emojiVersion}"
implementation "androidx.emoji2:emoji2-views:${emojiVersion}"
implementation "androidx.emoji2:emoji2-views-helper:${emojiVersion}"
implementation 'org.michaelevans.colorart:library:0.0.3' implementation 'org.michaelevans.colorart:library:0.0.3'
implementation "androidx.work:work-runtime:${workVersion}" implementation "androidx.work:work-runtime:${workVersion}"
implementation "androidx.work:work-rxjava2:${workVersion}" implementation "androidx.work:work-rxjava2:${workVersion}"
@ -245,7 +249,7 @@ dependencies {
implementation 'org.apache.commons:commons-lang3:3.12.0' implementation 'org.apache.commons:commons-lang3:3.12.0'
implementation 'com.github.wooplr:Spotlight:1.3' implementation 'com.github.wooplr:Spotlight:1.3'
implementation 'com.google.code.findbugs:jsr305:3.0.2' implementation 'com.google.code.findbugs:jsr305:3.0.2'
implementation 'com.github.nextcloud-deps:ChatKit:0.3.1' implementation 'com.github.nextcloud-deps:ChatKit:0.4.0'
implementation 'joda-time:joda-time:2.12.2' implementation 'joda-time:joda-time:2.12.2'
implementation "io.coil-kt:coil:${coilKtVersion}" implementation "io.coil-kt:coil:${coilKtVersion}"

View file

@ -33,7 +33,7 @@ import com.nextcloud.talk.databinding.ReactionsInsideMessageBinding;
import com.nextcloud.talk.models.json.chat.ChatMessage; import com.nextcloud.talk.models.json.chat.ChatMessage;
import androidx.core.content.ContextCompat; import androidx.core.content.ContextCompat;
import androidx.emoji.widget.EmojiTextView; import androidx.emoji2.widget.EmojiTextView;
public class IncomingPreviewMessageViewHolder extends PreviewMessageViewHolder { public class IncomingPreviewMessageViewHolder extends PreviewMessageViewHolder {
private final ItemCustomIncomingPreviewMessageBinding binding; private final ItemCustomIncomingPreviewMessageBinding binding;

View file

@ -33,7 +33,7 @@ import com.nextcloud.talk.databinding.ReactionsInsideMessageBinding;
import com.nextcloud.talk.models.json.chat.ChatMessage; import com.nextcloud.talk.models.json.chat.ChatMessage;
import androidx.core.content.ContextCompat; import androidx.core.content.ContextCompat;
import androidx.emoji.widget.EmojiTextView; import androidx.emoji2.widget.EmojiTextView;
public class OutcomingPreviewMessageViewHolder extends PreviewMessageViewHolder { public class OutcomingPreviewMessageViewHolder extends PreviewMessageViewHolder {

View file

@ -42,7 +42,7 @@ import android.widget.PopupMenu
import android.widget.ProgressBar import android.widget.ProgressBar
import androidx.appcompat.view.ContextThemeWrapper import androidx.appcompat.view.ContextThemeWrapper
import androidx.core.content.ContextCompat import androidx.core.content.ContextCompat
import androidx.emoji.widget.EmojiTextView import androidx.emoji2.widget.EmojiTextView
import autodagger.AutoInjector import autodagger.AutoInjector
import com.google.android.material.card.MaterialCardView import com.google.android.material.card.MaterialCardView
import com.nextcloud.talk.R import com.nextcloud.talk.R

View file

@ -31,8 +31,8 @@ import android.os.Build.VERSION.SDK_INT
import android.os.Build.VERSION_CODES.P import android.os.Build.VERSION_CODES.P
import android.util.Log import android.util.Log
import androidx.appcompat.app.AppCompatDelegate import androidx.appcompat.app.AppCompatDelegate
import androidx.emoji.bundled.BundledEmojiCompatConfig import androidx.emoji2.bundled.BundledEmojiCompatConfig
import androidx.emoji.text.EmojiCompat import androidx.emoji2.text.EmojiCompat
import androidx.lifecycle.LifecycleObserver import androidx.lifecycle.LifecycleObserver
import androidx.multidex.MultiDex import androidx.multidex.MultiDex
import androidx.multidex.MultiDexApplication import androidx.multidex.MultiDexApplication

View file

@ -81,8 +81,8 @@ import androidx.core.content.FileProvider
import androidx.core.content.PermissionChecker import androidx.core.content.PermissionChecker
import androidx.core.graphics.drawable.toBitmap import androidx.core.graphics.drawable.toBitmap
import androidx.core.widget.doAfterTextChanged import androidx.core.widget.doAfterTextChanged
import androidx.emoji.text.EmojiCompat import androidx.emoji2.text.EmojiCompat
import androidx.emoji.widget.EmojiTextView import androidx.emoji2.widget.EmojiTextView
import androidx.recyclerview.widget.ItemTouchHelper import androidx.recyclerview.widget.ItemTouchHelper
import androidx.recyclerview.widget.LinearLayoutManager import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView import androidx.recyclerview.widget.RecyclerView

View file

@ -45,7 +45,7 @@ import androidx.core.app.Person
import androidx.core.app.RemoteInput import androidx.core.app.RemoteInput
import androidx.core.content.ContextCompat import androidx.core.content.ContextCompat
import androidx.core.graphics.drawable.toBitmap import androidx.core.graphics.drawable.toBitmap
import androidx.emoji.text.EmojiCompat import androidx.emoji2.text.EmojiCompat
import androidx.work.Data import androidx.work.Data
import androidx.work.Worker import androidx.work.Worker
import androidx.work.WorkerParameters import androidx.work.WorkerParameters

View file

@ -129,7 +129,7 @@ class TalkSpecificViewThemeUtils @Inject constructor(
} }
} }
fun colorContactChatItemName(contactName: androidx.emoji.widget.EmojiTextView) { fun colorContactChatItemName(contactName: androidx.emoji2.widget.EmojiTextView) {
withScheme(contactName) { scheme -> withScheme(contactName) { scheme ->
contactName.setTextColor(scheme.onPrimaryContainer) contactName.setTextColor(scheme.onPrimaryContainer)
} }

View file

@ -82,7 +82,7 @@ import androidx.core.content.ContextCompat;
import androidx.core.content.res.ResourcesCompat; import androidx.core.content.res.ResourcesCompat;
import androidx.core.graphics.ColorUtils; import androidx.core.graphics.ColorUtils;
import androidx.core.graphics.drawable.DrawableCompat; import androidx.core.graphics.drawable.DrawableCompat;
import androidx.emoji.text.EmojiCompat; import androidx.emoji2.text.EmojiCompat;
import coil.Coil; import coil.Coil;
import coil.request.ImageRequest; import coil.request.ImageRequest;
import coil.target.Target; import coil.target.Target;

View file

@ -25,7 +25,8 @@ import android.util.AttributeSet;
import android.view.inputmethod.EditorInfo; import android.view.inputmethod.EditorInfo;
import android.view.inputmethod.InputConnection; import android.view.inputmethod.InputConnection;
import androidx.emoji.widget.EmojiEditTextHelper; import androidx.annotation.NonNull;
import androidx.emoji2.viewsintegration.EmojiEditTextHelper;
import com.google.android.material.textfield.TextInputEditText; import com.google.android.material.textfield.TextInputEditText;
@ -57,7 +58,7 @@ public class EmojiTextInputEditText extends TextInputEditText {
} }
@Override @Override
public InputConnection onCreateInputConnection(EditorInfo outAttrs) { public InputConnection onCreateInputConnection(@NonNull EditorInfo outAttrs) {
InputConnection inputConnection = super.onCreateInputConnection(outAttrs); InputConnection inputConnection = super.onCreateInputConnection(outAttrs);
return getEmojiEditTextHelper().onCreateInputConnection(inputConnection, outAttrs); return getEmojiEditTextHelper().onCreateInputConnection(inputConnection, outAttrs);
} }

View file

@ -32,7 +32,7 @@ import android.widget.ImageView
import android.widget.ProgressBar import android.widget.ProgressBar
import android.widget.Toast import android.widget.Toast
import androidx.core.content.FileProvider import androidx.core.content.FileProvider
import androidx.emoji.widget.EmojiTextView import androidx.emoji2.widget.EmojiTextView
import androidx.work.Data import androidx.work.Data
import androidx.work.OneTimeWorkRequest import androidx.work.OneTimeWorkRequest
import androidx.work.WorkInfo import androidx.work.WorkInfo

View file

@ -28,7 +28,7 @@ import android.view.inputmethod.EditorInfo
import android.view.inputmethod.InputConnection import android.view.inputmethod.InputConnection
import androidx.core.view.inputmethod.EditorInfoCompat import androidx.core.view.inputmethod.EditorInfoCompat
import androidx.core.view.inputmethod.InputConnectionCompat import androidx.core.view.inputmethod.InputConnectionCompat
import androidx.emoji.widget.EmojiEditText import androidx.emoji2.widget.EmojiEditText
import com.nextcloud.talk.utils.Mimetype.IMAGE_GIF import com.nextcloud.talk.utils.Mimetype.IMAGE_GIF
import com.nextcloud.talk.utils.Mimetype.IMAGE_JPEG import com.nextcloud.talk.utils.Mimetype.IMAGE_JPEG
import com.nextcloud.talk.utils.Mimetype.IMAGE_PNG import com.nextcloud.talk.utils.Mimetype.IMAGE_PNG
@ -47,9 +47,9 @@ class ImageEmojiEditText : EmojiEditText {
constructor(context: Context, attrs: AttributeSet) : super(context, attrs) constructor(context: Context, attrs: AttributeSet) : super(context, attrs)
@Suppress("Detekt.TooGenericExceptionCaught") @Suppress("Detekt.TooGenericExceptionCaught")
override fun onCreateInputConnection(editorInfo: EditorInfo): InputConnection { override fun onCreateInputConnection(editorInfo: EditorInfo): InputConnection? {
val ic: InputConnection = super.onCreateInputConnection(editorInfo) val ic: InputConnection? = super.onCreateInputConnection(editorInfo)
EditorInfoCompat.setContentMimeTypes(editorInfo, arrayOf(IMAGE_GIF, IMAGE_JPEG, IMAGE_PNG)) EditorInfoCompat.setContentMimeTypes(editorInfo, arrayOf(IMAGE_GIF, IMAGE_JPEG, IMAGE_PNG))
@ -73,6 +73,6 @@ class ImageEmojiEditText : EmojiEditText {
} }
} }
return InputConnectionCompat.createWrapper(ic, editorInfo, callback) return InputConnectionCompat.createWrapper(ic!!, editorInfo, callback)
} }
} }

View file

@ -67,7 +67,7 @@
android:paddingStart="3dp" android:paddingStart="3dp"
android:paddingEnd="0dp"> android:paddingEnd="0dp">
<androidx.emoji.widget.EmojiTextView <androidx.emoji2.widget.EmojiTextView
android:id="@+id/user_name" android:id="@+id/user_name"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"

View file

@ -68,7 +68,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content"> android:layout_height="wrap_content">
<androidx.emoji.widget.EmojiTextView <androidx.emoji2.widget.EmojiTextView
android:id="@+id/display_name_text" android:id="@+id/display_name_text"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
@ -98,7 +98,7 @@
apc:cardElevation="0dp" apc:cardElevation="0dp"
tools:visibility="visible"> tools:visibility="visible">
<androidx.emoji.widget.EmojiTextView <androidx.emoji2.widget.EmojiTextView
android:id="@+id/description_text" android:id="@+id/description_text"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"

View file

@ -40,7 +40,7 @@
android:transitionName="userAvatar.transitionTag" android:transitionName="userAvatar.transitionTag"
android:contentDescription="@string/avatar" /> android:contentDescription="@string/avatar" />
<androidx.emoji.widget.EmojiTextView <androidx.emoji2.widget.EmojiTextView
android:id="@+id/userinfo_fullName" android:id="@+id/userinfo_fullName"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"

View file

@ -59,7 +59,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content"> android:layout_height="wrap_content">
<androidx.emoji.widget.EmojiTextView <androidx.emoji2.widget.EmojiTextView
android:id="@+id/display_name_text" android:id="@+id/display_name_text"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"

View file

@ -78,7 +78,7 @@
android:paddingStart="3dp" android:paddingStart="3dp"
android:paddingEnd="0dp"> android:paddingEnd="0dp">
<androidx.emoji.widget.EmojiTextView <androidx.emoji2.widget.EmojiTextView
android:id="@+id/user_name" android:id="@+id/user_name"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"

View file

@ -39,7 +39,7 @@
android:src="@drawable/ic_baseline_bar_chart_24" android:src="@drawable/ic_baseline_bar_chart_24"
app:tint="@color/high_emphasis_menu_icon" /> app:tint="@color/high_emphasis_menu_icon" />
<androidx.emoji.widget.EmojiTextView <androidx.emoji2.widget.EmojiTextView
android:id="@+id/message_poll_title" android:id="@+id/message_poll_title"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"

View file

@ -56,7 +56,7 @@
layout="@layout/item_message_quote" layout="@layout/item_message_quote"
android:visibility="gone" /> android:visibility="gone" />
<androidx.emoji.widget.EmojiTextView <androidx.emoji2.widget.EmojiTextView
android:id="@+id/messageAuthor" android:id="@+id/messageAuthor"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
@ -68,7 +68,7 @@
android:textSize="12sp" android:textSize="12sp"
tools:text="Jane Doe" /> tools:text="Jane Doe" />
<androidx.emoji.widget.EmojiTextView <androidx.emoji2.widget.EmojiTextView
android:id="@id/messageText" android:id="@id/messageText"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"

View file

@ -61,7 +61,7 @@
android:layout_width="400dp" android:layout_width="400dp"
android:layout_height="200dp" /> android:layout_height="200dp" />
<androidx.emoji.widget.EmojiTextView <androidx.emoji2.widget.EmojiTextView
android:id="@+id/messageAuthor" android:id="@+id/messageAuthor"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
@ -70,7 +70,7 @@
android:textColor="@color/textColorMaxContrast" android:textColor="@color/textColorMaxContrast"
android:textSize="12sp" /> android:textSize="12sp" />
<androidx.emoji.widget.EmojiTextView <androidx.emoji2.widget.EmojiTextView
android:id="@id/messageText" android:id="@id/messageText"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"

View file

@ -53,7 +53,7 @@
layout="@layout/item_message_quote" layout="@layout/item_message_quote"
android:visibility="gone" /> android:visibility="gone" />
<androidx.emoji.widget.EmojiTextView <androidx.emoji2.widget.EmojiTextView
android:id="@+id/messageAuthor" android:id="@+id/messageAuthor"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
@ -76,7 +76,7 @@
android:src="@drawable/ic_baseline_bar_chart_24" android:src="@drawable/ic_baseline_bar_chart_24"
app:tint="@color/high_emphasis_menu_icon" /> app:tint="@color/high_emphasis_menu_icon" />
<androidx.emoji.widget.EmojiTextView <androidx.emoji2.widget.EmojiTextView
android:id="@+id/message_poll_title" android:id="@+id/message_poll_title"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"

View file

@ -121,7 +121,7 @@
tools:visibility="visible" /> tools:visibility="visible" />
</FrameLayout> </FrameLayout>
<androidx.emoji.widget.EmojiTextView <androidx.emoji2.widget.EmojiTextView
android:id="@+id/contact_name" android:id="@+id/contact_name"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="match_parent" android:layout_height="match_parent"
@ -145,7 +145,7 @@
</com.google.android.material.card.MaterialCardView> </com.google.android.material.card.MaterialCardView>
<androidx.emoji.widget.EmojiTextView <androidx.emoji2.widget.EmojiTextView
android:id="@id/messageText" android:id="@id/messageText"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"

View file

@ -54,7 +54,7 @@
layout="@layout/item_message_quote" layout="@layout/item_message_quote"
android:visibility="gone" /> android:visibility="gone" />
<androidx.emoji.widget.EmojiTextView <androidx.emoji2.widget.EmojiTextView
android:id="@+id/messageAuthor" android:id="@+id/messageAuthor"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
@ -66,7 +66,7 @@
android:textSize="12sp" android:textSize="12sp"
tools:text="Jane Doe" /> tools:text="Jane Doe" />
<androidx.emoji.widget.EmojiTextView <androidx.emoji2.widget.EmojiTextView
android:id="@id/messageText" android:id="@id/messageText"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"

View file

@ -57,7 +57,7 @@
layout="@layout/item_message_quote" layout="@layout/item_message_quote"
android:visibility="gone" /> android:visibility="gone" />
<androidx.emoji.widget.EmojiTextView <androidx.emoji2.widget.EmojiTextView
android:id="@+id/messageAuthor" android:id="@+id/messageAuthor"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"

View file

@ -48,7 +48,7 @@
layout="@layout/item_message_quote" layout="@layout/item_message_quote"
android:visibility="gone" /> android:visibility="gone" />
<androidx.emoji.widget.EmojiTextView <androidx.emoji2.widget.EmojiTextView
android:id="@id/messageText" android:id="@id/messageText"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"

View file

@ -51,7 +51,7 @@
android:layout_width="400dp" android:layout_width="400dp"
android:layout_height="200dp" /> android:layout_height="200dp" />
<androidx.emoji.widget.EmojiTextView <androidx.emoji2.widget.EmojiTextView
android:id="@id/messageText" android:id="@id/messageText"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"

View file

@ -58,7 +58,7 @@
android:src="@drawable/ic_baseline_bar_chart_24" android:src="@drawable/ic_baseline_bar_chart_24"
app:tint="@color/high_emphasis_text" /> app:tint="@color/high_emphasis_text" />
<androidx.emoji.widget.EmojiTextView <androidx.emoji2.widget.EmojiTextView
android:id="@+id/message_poll_title" android:id="@+id/message_poll_title"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"

View file

@ -111,7 +111,7 @@
tools:visibility="visible" /> tools:visibility="visible" />
</FrameLayout> </FrameLayout>
<androidx.emoji.widget.EmojiTextView <androidx.emoji2.widget.EmojiTextView
android:id="@+id/contact_name" android:id="@+id/contact_name"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="match_parent" android:layout_height="match_parent"
@ -135,7 +135,7 @@
</com.google.android.material.card.MaterialCardView> </com.google.android.material.card.MaterialCardView>
<androidx.emoji.widget.EmojiTextView <androidx.emoji2.widget.EmojiTextView
android:id="@id/messageText" android:id="@id/messageText"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"

View file

@ -46,7 +46,7 @@
layout="@layout/item_message_quote" layout="@layout/item_message_quote"
android:visibility="gone" /> android:visibility="gone" />
<androidx.emoji.widget.EmojiTextView <androidx.emoji2.widget.EmojiTextView
android:id="@id/messageText" android:id="@id/messageText"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"

View file

@ -38,7 +38,7 @@
android:layout_marginEnd="8dp" android:layout_marginEnd="8dp"
android:background="@color/high_emphasis_text" /> android:background="@color/high_emphasis_text" />
<androidx.emoji.widget.EmojiTextView <androidx.emoji2.widget.EmojiTextView
android:id="@+id/quotedMessageAuthor" android:id="@+id/quotedMessageAuthor"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
@ -79,7 +79,7 @@
app:layout_wrapBefore="true" app:layout_wrapBefore="true"
tools:src="@tools:sample/backgrounds/scenic" /> tools:src="@tools:sample/backgrounds/scenic" />
<androidx.emoji.widget.EmojiTextView <androidx.emoji2.widget.EmojiTextView
android:id="@+id/quotedMessage" android:id="@+id/quotedMessage"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"

View file

@ -25,7 +25,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:gravity="center"> android:gravity="center">
<androidx.emoji.widget.EmojiTextView <androidx.emoji2.widget.EmojiTextView
android:id="@+id/reaction_icon" android:id="@+id/reaction_icon"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"

View file

@ -42,7 +42,7 @@
app:flexWrap="wrap" app:flexWrap="wrap"
app:justifyContent="flex_end"> app:justifyContent="flex_end">
<androidx.emoji.widget.EmojiTextView <androidx.emoji2.widget.EmojiTextView
android:id="@+id/messageText" android:id="@+id/messageText"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"

View file

@ -43,7 +43,7 @@
android:textSize="@dimen/bottom_sheet_text_size" android:textSize="@dimen/bottom_sheet_text_size"
tools:text="Participant Name" /> tools:text="Participant Name" />
<androidx.emoji.widget.EmojiTextView <androidx.emoji2.widget.EmojiTextView
android:id="@+id/reaction" android:id="@+id/reaction"
android:layout_width="48dp" android:layout_width="48dp"
android:layout_height="48dp" android:layout_height="48dp"

View file

@ -33,7 +33,7 @@
android:background="@color/low_emphasis_text" android:background="@color/low_emphasis_text"
tools:layout_height="100dp" /> tools:layout_height="100dp" />
<androidx.emoji.widget.EmojiTextView <androidx.emoji2.widget.EmojiTextView
android:id="@+id/referenceName" android:id="@+id/referenceName"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
@ -48,7 +48,7 @@
tools:text="Name of Website" tools:text="Name of Website"
tools:visibility="visible" /> tools:visibility="visible" />
<androidx.emoji.widget.EmojiTextView <androidx.emoji2.widget.EmojiTextView
android:id="@+id/referenceDescription" android:id="@+id/referenceDescription"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
@ -63,7 +63,7 @@
tools:text="Description of Website" tools:text="Description of Website"
tools:visibility="visible" /> tools:visibility="visible" />
<androidx.emoji.widget.EmojiTextView <androidx.emoji2.widget.EmojiTextView
android:id="@+id/referenceLink" android:id="@+id/referenceLink"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"

View file

@ -42,7 +42,7 @@
android:src="@drawable/ic_check_black_24dp" android:src="@drawable/ic_check_black_24dp"
app:tint="@color/colorPrimary" /> app:tint="@color/colorPrimary" />
<androidx.emoji.widget.EmojiTextView <androidx.emoji2.widget.EmojiTextView
android:id="@+id/name_text" android:id="@+id/name_text"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"

View file

@ -57,7 +57,7 @@
app:layout_constraintEnd_toEndOf="@+id/avatar_view" app:layout_constraintEnd_toEndOf="@+id/avatar_view"
tools:src="@drawable/emoji_one_category_smileysandpeople"/> tools:src="@drawable/emoji_one_category_smileysandpeople"/>
<androidx.emoji.widget.EmojiTextView <androidx.emoji2.widget.EmojiTextView
android:id="@+id/name_text" android:id="@+id/name_text"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
@ -71,7 +71,7 @@
app:layout_constraintTop_toTopOf="@+id/avatar_view" app:layout_constraintTop_toTopOf="@+id/avatar_view"
tools:text="Jane Doe" /> tools:text="Jane Doe" />
<androidx.emoji.widget.EmojiTextView <androidx.emoji2.widget.EmojiTextView
android:id="@+id/conversation_info_status_message" android:id="@+id/conversation_info_status_message"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
@ -88,7 +88,7 @@
app:layout_constraintTop_toBottomOf="@+id/name_text" app:layout_constraintTop_toBottomOf="@+id/name_text"
tools:text="this is a very long status message. server allows only 81 chars here. 0123456789" /> tools:text="this is a very long status message. server allows only 81 chars here. 0123456789" />
<androidx.emoji.widget.EmojiTextView <androidx.emoji2.widget.EmojiTextView
android:id="@+id/secondary_text" android:id="@+id/secondary_text"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"

View file

@ -72,7 +72,7 @@
android:layout_marginTop="6dp" android:layout_marginTop="6dp"
android:layout_toEndOf="@id/dialogAvatarFrameLayout"> android:layout_toEndOf="@id/dialogAvatarFrameLayout">
<androidx.emoji.widget.EmojiTextView <androidx.emoji2.widget.EmojiTextView
android:id="@id/dialogLastMessage" android:id="@id/dialogLastMessage"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
@ -121,7 +121,7 @@
android:textSize="14sp" android:textSize="14sp"
tools:text="yesterday" /> tools:text="yesterday" />
<androidx.emoji.widget.EmojiTextView <androidx.emoji2.widget.EmojiTextView
android:id="@id/dialogName" android:id="@id/dialogName"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"

View file

@ -45,7 +45,7 @@
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" /> app:layout_constraintTop_toTopOf="parent" />
<androidx.emoji.widget.EmojiTextView <androidx.emoji2.widget.EmojiTextView
android:id="@+id/conversation_title" android:id="@+id/conversation_title"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
@ -61,7 +61,7 @@
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent"
tools:text="Message title goes here" /> tools:text="Message title goes here" />
<androidx.emoji.widget.EmojiTextView <androidx.emoji2.widget.EmojiTextView
android:id="@+id/message_excerpt" android:id="@+id/message_excerpt"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"

View file

@ -63,7 +63,7 @@
android:layout_centerVertical="true" android:layout_centerVertical="true"
android:layout_toEndOf="@id/preview_container"> android:layout_toEndOf="@id/preview_container">
<androidx.emoji.widget.EmojiTextView <androidx.emoji2.widget.EmojiTextView
android:id="@+id/file_name" android:id="@+id/file_name"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"