Commit 5e995fb9 authored by Divyanshu Bhargava's avatar Divyanshu Bhargava

change icon to text

parent 9c238721
...@@ -8,6 +8,7 @@ import chat.rocket.android.util.extensions.setVisible ...@@ -8,6 +8,7 @@ import chat.rocket.android.util.extensions.setVisible
import chat.rocket.android.widget.emoji.EmojiReactionListener import chat.rocket.android.widget.emoji.EmojiReactionListener
import kotlinx.android.synthetic.main.avatar.view.* import kotlinx.android.synthetic.main.avatar.view.*
import kotlinx.android.synthetic.main.item_message.view.* import kotlinx.android.synthetic.main.item_message.view.*
import timber.log.Timber
class MessageViewHolder( class MessageViewHolder(
itemView: View, itemView: View,
...@@ -34,9 +35,6 @@ class MessageViewHolder( ...@@ -34,9 +35,6 @@ class MessageViewHolder(
text_content.setTextColor( text_content.setTextColor(
if (data.isTemporary) Color.GRAY else Color.BLACK if (data.isTemporary) Color.GRAY else Color.BLACK
) )
if (data.message.editedBy != null){
image_edit_indicator.setVisible(true)
}
} }
} }
} }
\ No newline at end of file
...@@ -75,13 +75,14 @@ ...@@ -75,13 +75,14 @@
android:layout_marginStart="10dp" android:layout_marginStart="10dp"
tools:text="11:45 PM" /> tools:text="11:45 PM" />
<ImageView <TextView
android:id="@+id/image_edit_indicator" android:id="@+id/text_edit_indicator"
android:layout_width="16dp" android:layout_width="wrap_content"
android:layout_height="16dp" android:layout_height="wrap_content"
android:src="@drawable/ic_edit_black_24px" android:text="(edited)"
android:layout_marginStart="8dp" android:layout_marginStart="8dp"
android:layout_gravity="center_vertical" android:textStyle="italic"
android:textColor="@color/colorSecondaryTextLight"
android:visibility="gone" android:visibility="gone"
tools:visibility="visible"/> tools:visibility="visible"/>
</LinearLayout> </LinearLayout>
......
...@@ -101,6 +101,7 @@ ...@@ -101,6 +101,7 @@
Parece que la versión del servidor está por debajo de la versión mínima requerida %1$s.\nActualice su servidor para iniciar sesión! Parece que la versión del servidor está por debajo de la versión mínima requerida %1$s.\nActualice su servidor para iniciar sesión!
</string> </string>
<string name="msg_proceed">PROCEDER</string> <string name="msg_proceed">PROCEDER</string>
<string name="msg_cancel">CANCELAR</string> <string name="msg_cancel">CANCELAR</string>
<string name="msg_warning">ADVERTENCIA</string> <string name="msg_warning">ADVERTENCIA</string>
......
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