修复 点击去支付无反应 问题
This commit is contained in:
parent
f697e650a8
commit
a307e6f864
@ -11,7 +11,6 @@ import com.samsung.android.sdk.iap.lib.listener.OnPaymentListener;
|
||||
import com.samsung.android.sdk.iap.lib.vo.ConsumeVo;
|
||||
import com.samsung.android.sdk.iap.lib.vo.ErrorVo;
|
||||
import com.samsung.android.sdk.iap.lib.vo.OwnedProductVo;
|
||||
import com.samsung.android.sdk.iap.lib.vo.PurchaseVo;
|
||||
import com.yunbao.common.utils.L;
|
||||
|
||||
import java.util.ArrayList;
|
||||
@ -41,9 +40,16 @@ public class SamsungUtil {
|
||||
public void init() {
|
||||
iapHelper = IapHelper.getInstance(mContext);
|
||||
//设置支付模式 OPERATION_MODE_PRODUCTION 正式模式 OPERATION_MODE_TEST 测试模式
|
||||
iapHelper.setOperationMode(HelperDefine.OperationMode.OPERATION_MODE_TEST);
|
||||
iapHelper.setOperationMode(HelperDefine.OperationMode.OPERATION_MODE_PRODUCTION);
|
||||
}
|
||||
|
||||
public void dispose() {
|
||||
if (iapHelper != null) {
|
||||
iapHelper.dispose();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 购买
|
||||
*
|
||||
|
@ -4,14 +4,14 @@ ext {
|
||||
buildToolsVersion: "29.0.2",
|
||||
minSdkVersion : 21,
|
||||
targetSdkVersion : 33,
|
||||
versionCode : 460,
|
||||
versionCode : 461,
|
||||
versionName : "6.6.3"
|
||||
]
|
||||
manifestPlaceholders = [
|
||||
//正式、
|
||||
// serverHost : "https://napi.yaoulive.com",
|
||||
serverHost : "https://napi.yaoulive.com",
|
||||
// 测试
|
||||
serverHost : " https://ceshi.yaoulive.com",
|
||||
//serverHost : " https://ceshi.yaoulive.com",
|
||||
|
||||
//百度语音识别
|
||||
|
||||
|
@ -357,11 +357,11 @@ public class SystemMessageViewHolder extends AbsViewHolder implements View.OnCli
|
||||
mRefreshView.setDataHelper(new CommonRefreshView.DataHelper<SystemMessageBean>() {
|
||||
@Override
|
||||
public RefreshAdapter<SystemMessageBean> getAdapter() {
|
||||
if (mAdapter == null && (SystemMessageActivity.type.equals("1"))) {
|
||||
if (mAdapter == null && (SystemMessageActivity.type.equals("1"))) { //官方通知
|
||||
mAdapter = new SystemMessageAdapter(mContext);
|
||||
} else if (mAdapter == null && SystemMessageActivity.type.equals("2")) {
|
||||
mAdapter = new InteractionMessageAdapter(mContext, SystemMessageViewHolder.this);
|
||||
} else if (mAdapter == null && SystemMessageActivity.type.equals("4")) {
|
||||
} else if (mAdapter == null && SystemMessageActivity.type.equals("4")) { //系统消息
|
||||
mAdapter = new SystemMessageNewAdapter(mContext);
|
||||
}
|
||||
return mAdapter;
|
||||
|
@ -88,6 +88,7 @@ public class SamsungFragment extends Fragment {
|
||||
|
||||
private void initSamsung() {
|
||||
samsungUtil = new SamsungUtil(getActivity());
|
||||
samsungUtil.dispose();
|
||||
samsungUtil.init();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user