修复
This commit is contained in:
@@ -207,6 +207,10 @@ public class CompleteUserInfoActivity extends AbsActivity {
|
||||
avatar.setTag("https://downs.yaoulive.com/defaultblue.jpg");
|
||||
avatarChange.setOnClickListener(view -> {
|
||||
UserAvatarPopup userAvatarPopup = new UserAvatarPopup(this, userAvatar1 -> {
|
||||
if(StringUtil.isEmpty(userAvatar1)){
|
||||
ToastUtil.show(R.string.upload_fail);
|
||||
return;
|
||||
}
|
||||
avatar.setTag(userAvatar1);
|
||||
ImgLoader.display(this, userAvatar1, avatar);
|
||||
//txtChoose.setVisibility(View.GONE);
|
||||
@@ -230,6 +234,11 @@ public class CompleteUserInfoActivity extends AbsActivity {
|
||||
onSuccessToUrl(file, new OnItemClickListener<String>() {
|
||||
@Override
|
||||
public void onItemClick(String bean, int position) {
|
||||
if(StringUtil.isEmpty(bean)){
|
||||
ToastUtil.show(R.string.upload_fail);
|
||||
loading.dismiss();
|
||||
return;
|
||||
}
|
||||
avatar.setTag(bean);
|
||||
ImgLoader.display(mContext, bean, avatar);
|
||||
loading.dismiss();
|
||||
|
||||
@@ -93,6 +93,7 @@ import com.yunbao.common.manager.APKManager;
|
||||
import com.yunbao.common.manager.IMLoginManager;
|
||||
import com.yunbao.common.manager.NoviceInstructorManager;
|
||||
import com.yunbao.common.manager.OpenAdManager;
|
||||
import com.yunbao.common.manager.imrongcloud.MessageIMManager;
|
||||
import com.yunbao.common.manager.imrongcloud.RongcloudIMManager;
|
||||
import com.yunbao.common.utils.DialogUitl;
|
||||
import com.yunbao.common.utils.DpUtil;
|
||||
@@ -235,6 +236,7 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene
|
||||
@Override
|
||||
public void run() {
|
||||
ConversationIMListManager.get(mContext).addUserInfoProvider();
|
||||
MessageIMManager.get(mContext).resetImUnReadMessageCount(mContext);
|
||||
}
|
||||
}, 1000);
|
||||
UserInfoManager.updateMyInfo(this, null);
|
||||
|
||||
@@ -86,6 +86,12 @@ public class MainMsgAddressBookListAdapter extends BaseAdapter<MessageChatUserBe
|
||||
} else {
|
||||
bindList(holder, position);
|
||||
}
|
||||
View avatar = holder.getView(R.id.rc_conversation_portrait);
|
||||
if(avatar!=null){
|
||||
avatar.setOnClickListener(view -> {
|
||||
RouteUtil.forwardUserHome(mDataList.get(position).getId());
|
||||
});
|
||||
}
|
||||
holder.getConvertView().setTag(mDataList.get(position));
|
||||
holder.getConvertView().setOnClickListener(view -> {
|
||||
AppManager.runDebugCode(new Runnable() {
|
||||
|
||||
@@ -34,63 +34,53 @@
|
||||
app:layout_constraintStart_toStartOf="@+id/titleView"
|
||||
app:layout_constraintTop_toBottomOf="@+id/titleView" />
|
||||
|
||||
<ScrollView
|
||||
android:layout_width="0dp"
|
||||
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/recyclerView"
|
||||
android:layout_width="match_parent"
|
||||
app:layout_constraintBottom_toTopOf="@+id/buttons"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/number"
|
||||
android:layout_marginBottom="10dp"
|
||||
android:layout_height="0dp"
|
||||
android:layout_marginStart="15dp"
|
||||
android:layout_marginEnd="15dp"
|
||||
android:layout_marginTop="20dp"
|
||||
app:layoutManager="androidx.recyclerview.widget.GridLayoutManager"
|
||||
app:spanCount="4"
|
||||
tools:listitem="@layout/item_edit_user_hobby" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/buttons"
|
||||
app:layoutManager="androidx.recyclerview.widget.GridLayoutManager"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/number">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:orientation="vertical"
|
||||
android:layout_height="wrap_content">
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/recyclerView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:layoutManager="androidx.recyclerview.widget.GridLayoutManager"
|
||||
app:spanCount="4"
|
||||
tools:listitem="@layout/item_edit_user_hobby" />
|
||||
|
||||
<LinearLayout
|
||||
android:orientation="horizontal"
|
||||
android:layout_marginBottom="112dp"
|
||||
android:layout_gravity="center"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_cancel"
|
||||
android:layout_width="122dp"
|
||||
android:layout_height="54dp"
|
||||
android:textAllCaps="false"
|
||||
|
||||
android:background="@drawable/dialog_bg_chat_status_config_cuia"
|
||||
android:text="@string/edit_profile_hobby_cancel"
|
||||
/>
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_save"
|
||||
android:layout_width="186dp"
|
||||
android:layout_height="54dp"
|
||||
android:textColor="#FFFFFF"
|
||||
android:layout_marginStart="21dp"
|
||||
android:background="@drawable/bg_msg_address_book_user_btn_fan_cuia"
|
||||
android:textAllCaps="false"
|
||||
android:text="@string/back_community_sure" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
</ScrollView>
|
||||
|
||||
app:layout_constraintTop_toBottomOf="@+id/recyclerView"
|
||||
android:orientation="horizontal"
|
||||
android:layout_marginBottom="112dp"
|
||||
android:layout_gravity="center"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_cancel"
|
||||
android:layout_width="122dp"
|
||||
android:layout_height="54dp"
|
||||
android:textAllCaps="false"
|
||||
|
||||
android:background="@drawable/dialog_bg_chat_status_config_cuia"
|
||||
android:text="@string/edit_profile_hobby_cancel"
|
||||
/>
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_save"
|
||||
android:layout_width="186dp"
|
||||
android:layout_height="54dp"
|
||||
android:textColor="#FFFFFF"
|
||||
android:layout_marginStart="21dp"
|
||||
android:background="@drawable/bg_msg_address_book_user_btn_fan_cuia"
|
||||
android:textAllCaps="false"
|
||||
android:text="@string/back_community_sure" />
|
||||
</LinearLayout>
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
@@ -136,8 +136,9 @@
|
||||
<View
|
||||
android:id="@+id/v_table_redpoint_me"
|
||||
android:layout_width="12dp"
|
||||
tools:visibility="visible"
|
||||
android:layout_height="12dp"
|
||||
android:layout_marginTop="2dp"
|
||||
android:layout_marginTop="5dp"
|
||||
android:layout_marginEnd="20dp"
|
||||
android:background="@drawable/background_ff5075"
|
||||
android:visibility="gone" />
|
||||
|
||||
Reference in New Issue
Block a user