111
This commit is contained in:
parent
754b8639ae
commit
966e8bbddb
BIN
app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
Normal file
BIN
app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 64 KiB |
BIN
live/src/main/assets/double_click_tip.svga
Normal file
BIN
live/src/main/assets/double_click_tip.svga
Normal file
Binary file not shown.
BIN
live/src/main/assets/free_gift_tip.svga
Normal file
BIN
live/src/main/assets/free_gift_tip.svga
Normal file
Binary file not shown.
BIN
live/src/main/assets/live_follow_tip.svga
Normal file
BIN
live/src/main/assets/live_follow_tip.svga
Normal file
Binary file not shown.
@ -5,10 +5,12 @@ import android.graphics.drawable.Drawable;
|
|||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.os.Handler;
|
import android.os.Handler;
|
||||||
import android.os.Message;
|
import android.os.Message;
|
||||||
|
|
||||||
import androidx.core.content.ContextCompat;
|
import androidx.core.content.ContextCompat;
|
||||||
import androidx.viewpager.widget.ViewPager;
|
import androidx.viewpager.widget.ViewPager;
|
||||||
import androidx.recyclerview.widget.LinearLayoutManager;
|
import androidx.recyclerview.widget.LinearLayoutManager;
|
||||||
import androidx.recyclerview.widget.RecyclerView;
|
import androidx.recyclerview.widget.RecyclerView;
|
||||||
|
|
||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
import android.view.Gravity;
|
import android.view.Gravity;
|
||||||
@ -112,7 +114,7 @@ public class LiveGiftDialogFragment extends AbsDialogFragment implements View.On
|
|||||||
private RecyclerView items;
|
private RecyclerView items;
|
||||||
private GiftTopAdapter giftTopAdapter;
|
private GiftTopAdapter giftTopAdapter;
|
||||||
public int type = 0;
|
public int type = 0;
|
||||||
private static String type_name = "";
|
private static String type_name = "熱門";
|
||||||
JSONArray lsit;
|
JSONArray lsit;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -273,6 +275,7 @@ public class LiveGiftDialogFragment extends AbsDialogFragment implements View.On
|
|||||||
if (bundle != null) {
|
if (bundle != null) {
|
||||||
mLiveUid = bundle.getString(Constants.LIVE_UID);
|
mLiveUid = bundle.getString(Constants.LIVE_UID);
|
||||||
mStream = bundle.getString(Constants.LIVE_STREAM);
|
mStream = bundle.getString(Constants.LIVE_STREAM);
|
||||||
|
ToastUtil.show("啊"+ bundle.getString(Constants.LIVE_WISH_GIFTID));
|
||||||
mWishGiftId = bundle.getString(Constants.LIVE_WISH_GIFTID);
|
mWishGiftId = bundle.getString(Constants.LIVE_WISH_GIFTID);
|
||||||
by = bundle.getString("by");
|
by = bundle.getString("by");
|
||||||
}
|
}
|
||||||
@ -424,9 +427,15 @@ public class LiveGiftDialogFragment extends AbsDialogFragment implements View.On
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void showGiftList(List<LiveGiftBean> list) {
|
private void showGiftList(List<LiveGiftBean> list) {
|
||||||
if( IMLoginManager.get(mContext).isNewUserGif() == false) {
|
if (IMLoginManager.get(mContext).isNewUserGif() == false && type_name.equals("熱門")|| type_name.equals("Hot")) {
|
||||||
mWishGiftId = ""+bean1.getId();
|
ToastUtil.show(IMLoginManager.get(mContext).isNewUserGif() +"aaaa");
|
||||||
list.add(0,bean1);
|
|
||||||
|
list.add(0, bean1);
|
||||||
|
if(mWishGiftId==null) {
|
||||||
|
ToastUtil.show(12121+"");
|
||||||
|
|
||||||
|
mWishGiftId = "" + bean1.getId();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
mGiftList = list;
|
mGiftList = list;
|
||||||
mLiveGiftPagerAdapter = new LiveGiftPagerAdapter(mContext, list);
|
mLiveGiftPagerAdapter = new LiveGiftPagerAdapter(mContext, list);
|
||||||
@ -508,9 +517,7 @@ public class LiveGiftDialogFragment extends AbsDialogFragment implements View.On
|
|||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
int i = v.getId();
|
int i = v.getId();
|
||||||
if (i == R.id.btn_send || i == R.id.btn_send_lian) {
|
if (i == R.id.btn_send || i == R.id.btn_send_lian) {
|
||||||
if(ToolsButton.isFastDoubleClick() && mLiveGiftBean.getTag()!=null&&mCount.equals("1")){
|
if (ToolsButton.isFastDoubleClick() && mLiveGiftBean.getSwf().contains("svga")) {
|
||||||
ToastUtil.show("手速太快了");
|
|
||||||
} else if (ToolsButton.isFastDoubleClick() && mLiveGiftBean.getSwf().contains("svga")) {
|
|
||||||
ToastUtil.show("手速太快了");
|
ToastUtil.show("手速太快了");
|
||||||
} else {
|
} else {
|
||||||
sendGift();
|
sendGift();
|
||||||
@ -675,8 +682,8 @@ public class LiveGiftDialogFragment extends AbsDialogFragment implements View.On
|
|||||||
* 赠送礼物
|
* 赠送礼物
|
||||||
*/
|
*/
|
||||||
public void sendGift() {
|
public void sendGift() {
|
||||||
if(mLiveGiftBean.getTag()!=null){
|
if (mLiveGiftBean.getTag() != null) {
|
||||||
if(mCount.equals("1")) {
|
if (mCount.equals("1")) {
|
||||||
LiveHttpUtil.setFrontTask("sendgift", mLiveUid, new HttpCallback() {
|
LiveHttpUtil.setFrontTask("sendgift", mLiveUid, new HttpCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
@ -688,10 +695,10 @@ public class LiveGiftDialogFragment extends AbsDialogFragment implements View.On
|
|||||||
dismiss();
|
dismiss();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}else {
|
} else {
|
||||||
ToastUtil.show(R.string.only_one);
|
ToastUtil.show(R.string.only_one);
|
||||||
}
|
}
|
||||||
}else {
|
} else {
|
||||||
if (TextUtils.isEmpty(mLiveUid) || TextUtils.isEmpty(mStream) || mLiveGiftBean == null) {
|
if (TextUtils.isEmpty(mLiveUid) || TextUtils.isEmpty(mStream) || mLiveGiftBean == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -159,7 +159,7 @@ public class LiveLinkMicPresenter implements View.OnClickListener {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if ("stop_new_user_gif".equals(str)) {
|
} else if ("stop_new_user_gif".equals(str)) {
|
||||||
IMLoginManager.get(mContext).setNewUserGif(true);
|
IMLoginManager.get(mContext).setNewUserGif(false);
|
||||||
mBannerList3.get(0).setLink("1");
|
mBannerList3.get(0).setLink("1");
|
||||||
mBanner3.update(mBannerList3);
|
mBanner3.update(mBannerList3);
|
||||||
if(mBannerList3.get(0).getLink().equals("1")){
|
if(mBannerList3.get(0).getLink().equals("1")){
|
||||||
@ -306,7 +306,7 @@ public class LiveLinkMicPresenter implements View.OnClickListener {
|
|||||||
gold = reward_one.getString("gold");
|
gold = reward_one.getString("gold");
|
||||||
experience = reward_one.getString("experience");
|
experience = reward_one.getString("experience");
|
||||||
|
|
||||||
bean1.setSwf("111");
|
bean1.setSwf("111.svga");
|
||||||
bean1.setChecked(false);
|
bean1.setChecked(false);
|
||||||
bean1.setIcon(obj1.getString("gifticon"));
|
bean1.setIcon(obj1.getString("gifticon"));
|
||||||
bean1.setId(obj1.getIntValue("id"));
|
bean1.setId(obj1.getIntValue("id"));
|
||||||
|
@ -222,6 +222,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
|
|
||||||
public WindowManager windowManager;
|
public WindowManager windowManager;
|
||||||
public boolean isRy = false;
|
public boolean isRy = false;
|
||||||
|
|
||||||
public LiveRoomViewHolder(boolean isRys, int forActivity, Context context, ViewGroup parentView, GifImageView gifImageView, SVGAImageView svgaImageView, ViewGroup liveGiftPrizePoolContainer, WindowManager windowManager) {
|
public LiveRoomViewHolder(boolean isRys, int forActivity, Context context, ViewGroup parentView, GifImageView gifImageView, SVGAImageView svgaImageView, ViewGroup liveGiftPrizePoolContainer, WindowManager windowManager) {
|
||||||
super(context, parentView);
|
super(context, parentView);
|
||||||
Contexts = context;
|
Contexts = context;
|
||||||
@ -1199,7 +1200,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
LiveHttpUtil.setFrontTask("attent", new HttpCallback() {
|
LiveHttpUtil.setFrontTask("attent", new HttpCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
if(code == 0){
|
if (code == 0) {
|
||||||
EventBus.getDefault().post("stop_svga_new_user_follow1");
|
EventBus.getDefault().post("stop_svga_new_user_follow1");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -72,6 +72,7 @@
|
|||||||
android:gravity="left|center"
|
android:gravity="left|center"
|
||||||
android:hint="@string/edit_profile_name_empty"
|
android:hint="@string/edit_profile_name_empty"
|
||||||
android:background="@null"
|
android:background="@null"
|
||||||
|
android:maxLines="10"
|
||||||
android:maxLength="20"
|
android:maxLength="20"
|
||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
android:textColor="#161616"
|
android:textColor="#161616"
|
||||||
|
Loading…
Reference in New Issue
Block a user