Commit b659f8c8 authored by Tiago Cunha's avatar Tiago Cunha

PR based feedback

parent dfec623b
...@@ -28,7 +28,7 @@ import chat.rocket.android.realm_helper.RealmListObserver; ...@@ -28,7 +28,7 @@ import chat.rocket.android.realm_helper.RealmListObserver;
import chat.rocket.android.realm_helper.RealmObjectObserver; import chat.rocket.android.realm_helper.RealmObjectObserver;
import chat.rocket.android.realm_helper.RealmStore; import chat.rocket.android.realm_helper.RealmStore;
import chat.rocket.android.renderer.UserRenderer; import chat.rocket.android.renderer.UserRenderer;
import chat.rocket.android.widget.message.RocketChatAvatar; import chat.rocket.android.widget.RocketChatAvatar;
public class SidebarMainFragment extends AbstractFragment { public class SidebarMainFragment extends AbstractFragment {
......
...@@ -11,7 +11,7 @@ import com.amulyakhare.textdrawable.TextDrawable; ...@@ -11,7 +11,7 @@ import com.amulyakhare.textdrawable.TextDrawable;
import java.io.UnsupportedEncodingException; import java.io.UnsupportedEncodingException;
import java.net.URLEncoder; import java.net.URLEncoder;
import chat.rocket.android.log.RCLog; import chat.rocket.android.log.RCLog;
import chat.rocket.android.widget.message.RocketChatAvatar; import chat.rocket.android.widget.RocketChatAvatar;
/** /**
* Helper for rendering user avatar image. * Helper for rendering user avatar image.
......
...@@ -9,7 +9,7 @@ import chat.rocket.android.helper.DateTime; ...@@ -9,7 +9,7 @@ import chat.rocket.android.helper.DateTime;
import chat.rocket.android.helper.TextUtils; import chat.rocket.android.helper.TextUtils;
import chat.rocket.android.model.SyncState; import chat.rocket.android.model.SyncState;
import chat.rocket.android.realm_helper.RealmModelViewHolder; import chat.rocket.android.realm_helper.RealmModelViewHolder;
import chat.rocket.android.widget.message.RocketChatAvatar; import chat.rocket.android.widget.RocketChatAvatar;
public abstract class AbstractMessageViewHolder extends RealmModelViewHolder<PairedMessage> { public abstract class AbstractMessageViewHolder extends RealmModelViewHolder<PairedMessage> {
protected final RocketChatAvatar avatar; protected final RocketChatAvatar avatar;
......
...@@ -6,7 +6,7 @@ import android.widget.ImageView; ...@@ -6,7 +6,7 @@ import android.widget.ImageView;
import android.widget.TextView; import android.widget.TextView;
import chat.rocket.android.R; import chat.rocket.android.R;
import chat.rocket.android.widget.message.RocketChatAvatar; import chat.rocket.android.widget.RocketChatAvatar;
/** /**
* ViewHolder for UsersOfRoom. * ViewHolder for UsersOfRoom.
......
...@@ -10,7 +10,7 @@ import chat.rocket.android.R; ...@@ -10,7 +10,7 @@ import chat.rocket.android.R;
import chat.rocket.android.model.ddp.User; import chat.rocket.android.model.ddp.User;
import chat.rocket.android.realm_helper.RealmAutoCompleteAdapter; import chat.rocket.android.realm_helper.RealmAutoCompleteAdapter;
import chat.rocket.android.renderer.UserRenderer; import chat.rocket.android.renderer.UserRenderer;
import chat.rocket.android.widget.message.RocketChatAvatar; import chat.rocket.android.widget.RocketChatAvatar;
/** /**
* adapter to suggest user names. * adapter to suggest user names.
......
...@@ -12,7 +12,7 @@ import chat.rocket.android.helper.TextUtils; ...@@ -12,7 +12,7 @@ import chat.rocket.android.helper.TextUtils;
import chat.rocket.android.model.SyncState; import chat.rocket.android.model.SyncState;
import chat.rocket.android.model.ddp.Message; import chat.rocket.android.model.ddp.Message;
import chat.rocket.android.model.ddp.User; import chat.rocket.android.model.ddp.User;
import chat.rocket.android.widget.message.RocketChatAvatar; import chat.rocket.android.widget.RocketChatAvatar;
import chat.rocket.android.widget.message.RocketChatMessageAttachmentsLayout; import chat.rocket.android.widget.message.RocketChatMessageAttachmentsLayout;
import chat.rocket.android.widget.message.RocketChatMessageLayout; import chat.rocket.android.widget.message.RocketChatMessageLayout;
import chat.rocket.android.widget.message.RocketChatMessageUrlsLayout; import chat.rocket.android.widget.message.RocketChatMessageUrlsLayout;
......
...@@ -8,7 +8,7 @@ import chat.rocket.android.R; ...@@ -8,7 +8,7 @@ import chat.rocket.android.R;
import chat.rocket.android.helper.Avatar; import chat.rocket.android.helper.Avatar;
import chat.rocket.android.helper.TextUtils; import chat.rocket.android.helper.TextUtils;
import chat.rocket.android.model.ddp.User; import chat.rocket.android.model.ddp.User;
import chat.rocket.android.widget.message.RocketChatAvatar; import chat.rocket.android.widget.RocketChatAvatar;
/** /**
* Renderer for User model. * Renderer for User model.
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
android:layout_width="@dimen/margin_8" android:layout_width="@dimen/margin_8"
android:layout_height="wrap_content" /> android:layout_height="wrap_content" />
<chat.rocket.android.widget.message.RocketChatAvatar <chat.rocket.android.widget.RocketChatAvatar
android:id="@+id/current_user_avatar" android:id="@+id/current_user_avatar"
android:layout_width="40dp" android:layout_width="40dp"
android:layout_height="40dp" /> android:layout_height="40dp" />
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginBottom="2dp"> android:layout_marginBottom="2dp">
<chat.rocket.android.widget.message.RocketChatAvatar <chat.rocket.android.widget.RocketChatAvatar
android:id="@+id/user_avatar" android:id="@+id/user_avatar"
android:layout_width="32dp" android:layout_width="32dp"
android:layout_height="32dp" android:layout_height="32dp"
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content"> android:layout_height="wrap_content">
<chat.rocket.android.widget.message.RocketChatAvatar <chat.rocket.android.widget.RocketChatAvatar
android:id="@+id/user_avatar" android:id="@+id/user_avatar"
android:layout_width="32dp" android:layout_width="32dp"
android:layout_height="32dp" android:layout_height="32dp"
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
android:layout_height="8dp" android:layout_height="8dp"
android:layout_margin="@dimen/margin_8" /> android:layout_margin="@dimen/margin_8" />
<chat.rocket.android.widget.message.RocketChatAvatar <chat.rocket.android.widget.RocketChatAvatar
android:id="@+id/room_user_avatar" android:id="@+id/room_user_avatar"
android:layout_width="24dp" android:layout_width="24dp"
android:layout_height="24dp" /> android:layout_height="24dp" />
......
package chat.rocket.android.widget.message; package chat.rocket.android.widget;
import android.annotation.TargetApi; import android.annotation.TargetApi;
import android.content.Context; import android.content.Context;
......
...@@ -99,9 +99,9 @@ ...@@ -99,9 +99,9 @@
<com.facebook.drawee.view.SimpleDraweeView <com.facebook.drawee.view.SimpleDraweeView
android:id="@+id/image" android:id="@+id/image"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="200dp" android:layout_height="150dp"
android:layout_marginBottom="8dp" android:layout_marginBottom="8dp"
fresco:actualImageScaleType="fitCenter" /> fresco:actualImageScaleType="fitStart" />
<!-- audio --> <!-- audio -->
<!-- video --> <!-- video -->
......
...@@ -9,6 +9,6 @@ ...@@ -9,6 +9,6 @@
<com.facebook.drawee.view.SimpleDraweeView <com.facebook.drawee.view.SimpleDraweeView
android:id="@+id/message_inline_image" android:id="@+id/message_inline_image"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="200dp" android:layout_height="150dp"
fresco:actualImageScaleType="fitCenter" /> fresco:actualImageScaleType="fitStart" />
</FrameLayout> </FrameLayout>
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