修改礼物界面的切换逻辑
This commit is contained in:
parent
e4c48f948d
commit
8611817a6a
@ -209,6 +209,13 @@ public class LiveGiftDialogFragment extends AbsDialogFragment implements View.On
|
|||||||
type = position;
|
type = position;
|
||||||
type_name = bean.getName();
|
type_name = bean.getName();
|
||||||
upData();
|
upData();
|
||||||
|
if (mBtnSendGroup != null && mBtnSendGroup.getVisibility() == View.VISIBLE) {
|
||||||
|
mBtnChooseCount.setVisibility(View.INVISIBLE);
|
||||||
|
mArrow.setVisibility(View.INVISIBLE);
|
||||||
|
mBtnSend.setVisibility(View.VISIBLE);
|
||||||
|
mBtnSend.setEnabled(false);
|
||||||
|
mBtnSend.setBackgroundDrawable(mDrawable2);
|
||||||
|
}
|
||||||
//点击礼物,展示礼物列表
|
//点击礼物,展示礼物列表
|
||||||
mCurrentId = 0;
|
mCurrentId = 0;
|
||||||
if (mViewPager != null) {
|
if (mViewPager != null) {
|
||||||
|
@ -4999,7 +4999,10 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
call.setType(TopBannerCustomViewHolder.TYPE_CALL_ANCHOR);
|
call.setType(TopBannerCustomViewHolder.TYPE_CALL_ANCHOR);
|
||||||
mTopBannerList.add(0, call);
|
mTopBannerList.add(0, call);
|
||||||
topBanner1.update(mTopBannerList);
|
topBanner1.update(mTopBannerList);
|
||||||
topBanner2.update(mTopBannerList);
|
if (topBanner2.getVisibility()==View.VISIBLE){
|
||||||
|
topBanner2.update(mTopBannerList);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -4,6 +4,7 @@ import android.app.Dialog;
|
|||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
import android.graphics.Color;
|
import android.graphics.Color;
|
||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
|
import android.util.Log;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.widget.FrameLayout;
|
import android.widget.FrameLayout;
|
||||||
import android.widget.ImageView;
|
import android.widget.ImageView;
|
||||||
@ -15,6 +16,7 @@ import com.alibaba.fastjson.JSONObject;
|
|||||||
import com.lxj.xpopup.XPopup;
|
import com.lxj.xpopup.XPopup;
|
||||||
import com.lxj.xpopup.core.BasePopupView;
|
import com.lxj.xpopup.core.BasePopupView;
|
||||||
import com.lxj.xpopup.interfaces.XPopupCallback;
|
import com.lxj.xpopup.interfaces.XPopupCallback;
|
||||||
|
import com.lzy.okgo.model.Response;
|
||||||
import com.sahooz.library.Country;
|
import com.sahooz.library.Country;
|
||||||
import com.sahooz.library.CountryPicker;
|
import com.sahooz.library.CountryPicker;
|
||||||
import com.sahooz.library.OnPick;
|
import com.sahooz.library.OnPick;
|
||||||
@ -29,6 +31,7 @@ import com.yunbao.common.bean.UserBean;
|
|||||||
import com.yunbao.common.event.UpdateFieldEvent;
|
import com.yunbao.common.event.UpdateFieldEvent;
|
||||||
import com.yunbao.common.glide.ImgLoader;
|
import com.yunbao.common.glide.ImgLoader;
|
||||||
import com.yunbao.common.http.HttpCallback;
|
import com.yunbao.common.http.HttpCallback;
|
||||||
|
import com.yunbao.common.http.JsonBean;
|
||||||
import com.yunbao.common.http.live.LiveNetManager;
|
import com.yunbao.common.http.live.LiveNetManager;
|
||||||
import com.yunbao.common.interfaces.ActivityResultCallback;
|
import com.yunbao.common.interfaces.ActivityResultCallback;
|
||||||
import com.yunbao.common.interfaces.CommonCallback;
|
import com.yunbao.common.interfaces.CommonCallback;
|
||||||
@ -128,6 +131,7 @@ public class EditProfileActivity extends AbsActivity {
|
|||||||
MainHttpUtil.updateAvatar(file, new HttpCallback() {
|
MainHttpUtil.updateAvatar(file, new HttpCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
|
Log.e("updateAvatar", "code:" + code + " msg:" + msg + " info[0]:" + info[0].toString());
|
||||||
if (code == 0 && info.length > 0) {
|
if (code == 0 && info.length > 0) {
|
||||||
ToastUtil.show(R.string.edit_profile_update_avatar_success);
|
ToastUtil.show(R.string.edit_profile_update_avatar_success);
|
||||||
UserBean bean = CommonAppConfig.getInstance().getUserBean();
|
UserBean bean = CommonAppConfig.getInstance().getUserBean();
|
||||||
@ -150,12 +154,19 @@ public class EditProfileActivity extends AbsActivity {
|
|||||||
EventBus.getDefault().post(new UpdateFieldEvent());
|
EventBus.getDefault().post(new UpdateFieldEvent());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onError(Response<JsonBean> response) {
|
||||||
|
super.onError(response);
|
||||||
|
Log.e("updateAvatar", "onFailure");
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onFailure() {
|
public void onFailure() {
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
mUserBean = CommonAppConfig.getInstance().getUserBean();
|
mUserBean = CommonAppConfig.getInstance().getUserBean();
|
||||||
|
Loading…
Reference in New Issue
Block a user