修改 测试问题
This commit is contained in:
parent
cd35b9e40f
commit
f1645cf72c
@ -3,6 +3,7 @@ package com.yunbao.common.utils;
|
|||||||
import android.app.Activity;
|
import android.app.Activity;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
import android.webkit.JavascriptInterface;
|
import android.webkit.JavascriptInterface;
|
||||||
|
import android.webkit.ValueCallback;
|
||||||
import android.webkit.WebView;
|
import android.webkit.WebView;
|
||||||
|
|
||||||
public class JavascriptInterfacePlayLetUtils {
|
public class JavascriptInterfacePlayLetUtils {
|
||||||
@ -23,6 +24,11 @@ public class JavascriptInterfacePlayLetUtils {
|
|||||||
public JavascriptInterfacePlayLetUtils setmContext(Activity mContext, WebView mWebView) {
|
public JavascriptInterfacePlayLetUtils setmContext(Activity mContext, WebView mWebView) {
|
||||||
this.mContext = mContext;
|
this.mContext = mContext;
|
||||||
this.mWebView = mWebView;
|
this.mWebView = mWebView;
|
||||||
|
// webView.evaluateJavascript("javascript:nativeCallback('" + params + "')", new ValueCallback<String>() {
|
||||||
|
// @Override
|
||||||
|
// public void onReceiveValue(String value) {
|
||||||
|
// }
|
||||||
|
// });
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1386,5 +1386,6 @@ Limited ride And limited avatar frame</string>
|
|||||||
<string name="room_sill0_100">0-100 coins</string>
|
<string name="room_sill0_100">0-100 coins</string>
|
||||||
<string name="room_sill100_500">100-500 coins</string>
|
<string name="room_sill100_500">100-500 coins</string>
|
||||||
<string name="room_sill500_m">Above 500 coins</string>
|
<string name="room_sill500_m">Above 500 coins</string>
|
||||||
|
<string name="combo">combo X</string>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -1383,4 +1383,5 @@
|
|||||||
<string name="room_sill0_100">0-100星幣</string>
|
<string name="room_sill0_100">0-100星幣</string>
|
||||||
<string name="room_sill100_500">100-500星幣</string>
|
<string name="room_sill100_500">100-500星幣</string>
|
||||||
<string name="room_sill500_m">500以上星幣</string>
|
<string name="room_sill500_m">500以上星幣</string>
|
||||||
|
<string name="combo">連擊×</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -1382,4 +1382,5 @@
|
|||||||
<string name="room_sill0_100">0-100星幣</string>
|
<string name="room_sill0_100">0-100星幣</string>
|
||||||
<string name="room_sill100_500">100-500星幣</string>
|
<string name="room_sill100_500">100-500星幣</string>
|
||||||
<string name="room_sill500_m">500以上星幣</string>
|
<string name="room_sill500_m">500以上星幣</string>
|
||||||
|
<string name="combo">連擊×</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -1382,5 +1382,6 @@
|
|||||||
<string name="room_sill0_100">0-100星幣</string>
|
<string name="room_sill0_100">0-100星幣</string>
|
||||||
<string name="room_sill100_500">100-500星幣</string>
|
<string name="room_sill100_500">100-500星幣</string>
|
||||||
<string name="room_sill500_m">500以上星幣</string>
|
<string name="room_sill500_m">500以上星幣</string>
|
||||||
|
<string name="combo">連擊×</string>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -1389,5 +1389,5 @@ Limited ride And limited avatar frame</string>
|
|||||||
<string name="room_sill0_100">0-100 coins</string>
|
<string name="room_sill0_100">0-100 coins</string>
|
||||||
<string name="room_sill100_500">100-500 coins</string>
|
<string name="room_sill100_500">100-500 coins</string>
|
||||||
<string name="room_sill500_m">Above 500 coins</string>
|
<string name="room_sill500_m">Above 500 coins</string>
|
||||||
<string name="combo">連擊×</string>
|
<string name="combo">combo X</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -768,9 +768,9 @@ public class SocketRyClient {
|
|||||||
SendQuickGiftModel sendQuickGiftModel = GsonUtils.fromJson(map.toString(), SendQuickGiftModel.class);
|
SendQuickGiftModel sendQuickGiftModel = GsonUtils.fromJson(map.toString(), SendQuickGiftModel.class);
|
||||||
StringBuffer stringBuffer = new StringBuffer();
|
StringBuffer stringBuffer = new StringBuffer();
|
||||||
stringBuffer.append(sendQuickGiftModel.getUserNicename())
|
stringBuffer.append(sendQuickGiftModel.getUserNicename())
|
||||||
.append(WordUtil.isNewZh() ? "送出了" : "sent")
|
.append(WordUtil.isNewZh() ? " 送出了 " : " sent ")
|
||||||
.append(sendQuickGiftModel.getQuickGiftNumber())
|
.append(sendQuickGiftModel.getQuickGiftNumber())
|
||||||
.append(WordUtil.isNewZh() ? "個小PD" : "small pandas");
|
.append(WordUtil.isNewZh() ? " 個小PD " : " small pandas ");
|
||||||
systemChatMessage2(stringBuffer.toString());
|
systemChatMessage2(stringBuffer.toString());
|
||||||
Bus.get().post(new QuickGiftingEvent().setHotNum(sendQuickGiftModel.getHotNum()));
|
Bus.get().post(new QuickGiftingEvent().setHotNum(sendQuickGiftModel.getHotNum()));
|
||||||
break;
|
break;
|
||||||
|
@ -296,6 +296,7 @@ public class LiveAudienceViewHolder extends AbsLiveViewHolder {
|
|||||||
LiveHDDialogFragment liveHDDialogFragment = new LiveHDDialogFragment();
|
LiveHDDialogFragment liveHDDialogFragment = new LiveHDDialogFragment();
|
||||||
liveHDDialogFragment.setArguments(bundle1);
|
liveHDDialogFragment.setArguments(bundle1);
|
||||||
liveHDDialogFragment.show(((LiveAudienceActivity) mContext).getSupportFragmentManager(), "LiveHDDialogFragment");
|
liveHDDialogFragment.show(((LiveAudienceActivity) mContext).getSupportFragmentManager(), "LiveHDDialogFragment");
|
||||||
|
Bus.get().post(new QuickGiftingEvent().setReminder(true));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
pd_pao.setOnLongClickListener(new View.OnLongClickListener() {
|
pd_pao.setOnLongClickListener(new View.OnLongClickListener() {
|
||||||
@ -400,6 +401,8 @@ public class LiveAudienceViewHolder extends AbsLiveViewHolder {
|
|||||||
if (!(quickGiftContDown > 0 && quickGiftContDown < 120)) {
|
if (!(quickGiftContDown > 0 && quickGiftContDown < 120)) {
|
||||||
quickGiftHandler.postDelayed(quickGiftRunnable, 1000);
|
quickGiftHandler.postDelayed(quickGiftRunnable, 1000);
|
||||||
}
|
}
|
||||||
|
}else {
|
||||||
|
circleProgress.setCurrent(2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -717,7 +717,6 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
} else {
|
} else {
|
||||||
quick_gift_reminder.setVisibility(View.GONE);
|
quick_gift_reminder.setVisibility(View.GONE);
|
||||||
}
|
}
|
||||||
IMLoginManager.get(mContext).setQuickGiftIfFirst();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
public void onQuickGifting3() {
|
public void onQuickGifting3() {
|
||||||
|
@ -2537,10 +2537,10 @@
|
|||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/quick_gift_reminder"
|
android:id="@+id/quick_gift_reminder"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="63dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="72dp"
|
||||||
android:layout_alignParentBottom="true"
|
|
||||||
android:layout_alignParentEnd="true"
|
android:layout_alignParentEnd="true"
|
||||||
|
android:layout_alignParentBottom="true"
|
||||||
android:layout_marginEnd="125dp"
|
android:layout_marginEnd="125dp"
|
||||||
android:src="@mipmap/background_quick_gift_reminder"
|
android:src="@mipmap/background_quick_gift_reminder"
|
||||||
android:visibility="gone" />
|
android:visibility="gone" />
|
||||||
|
Loading…
Reference in New Issue
Block a user