Commit b5e9d97a authored by jianglx's avatar jianglx

修改推广有奖活动规则;修改启动页获取im 配置有可能失败的问题

parent 760f9d1f
...@@ -8,8 +8,8 @@ android { ...@@ -8,8 +8,8 @@ android {
minSdkVersion rootProject.ext.minSdkVersion minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion
flavorDimensions "default" flavorDimensions "default"
versionCode 146 versionCode 147
versionName "1.4.6" versionName "1.4.7"
multiDexEnabled true multiDexEnabled true
......
...@@ -368,11 +368,17 @@ public class ChatContentAdapter extends RecyclerView.Adapter<RecyclerView.ViewHo ...@@ -368,11 +368,17 @@ public class ChatContentAdapter extends RecyclerView.Adapter<RecyclerView.ViewHo
VoicePlayer.instance().playVoice(holder.chatVoiceAnimView); VoicePlayer.instance().playVoice(holder.chatVoiceAnimView);
ChatMessageServiceImp.getInstance(mContext).setVoicePlay(bean.getPackId()); ChatMessageServiceImp.getInstance(mContext).setVoicePlay(bean.getPackId());
listener.voicePlay(bean); listener.voicePlay(bean);
holder.imgState.setVisibility(View.GONE);
} }
); );
if (!TextUtils.isEmpty(bean.getContent())) { if (!TextUtils.isEmpty(bean.getContent())) {
holder.chatVoiceAnimView.fillData(bean); holder.chatVoiceAnimView.fillData(bean);
} }
if (bean.getVoiceStatus() == 0) {
holder.imgState.setVisibility(View.VISIBLE);
} else {
holder.imgState.setVisibility(View.GONE);
}
} }
private void setToVoiceContentView(ChatMessage bean, MsgToVoiceHolder holder) { private void setToVoiceContentView(ChatMessage bean, MsgToVoiceHolder holder) {
......
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:ellipsize="end" android:ellipsize="end"
android:maxLength="10" android:maxLength="8"
android:textColor="@color/colorYellow" android:textColor="@color/colorYellow"
android:textSize="@dimen/text_16" android:textSize="@dimen/text_16"
android:visibility="gone" /> android:visibility="gone" />
......
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