新增新用户注册后FirebaseAnalytics.logEvent调用
尝试修复美颜会闪屏问题(待观察) 修复跨机子设置备注不显示在列表上的问题 修复聊天列表会出现PK消息的问题
This commit is contained in:
@@ -19,6 +19,9 @@ import com.yunbao.common.utils.StringUtil;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import io.rong.imkit.userinfo.RongUserInfoManager;
|
||||
import io.rong.imlib.model.UserInfo;
|
||||
|
||||
/**
|
||||
* 新手指导员备注列表
|
||||
*/
|
||||
@@ -66,6 +69,13 @@ public class InstructorRemarkManager extends BaseCacheManager {
|
||||
this.instructorRemarkMap = JSON.parseObject(map, new TypeReference<Map<String, String>>() {
|
||||
});
|
||||
put(KEY_INSTRUCTOR_REMARK, map);
|
||||
for (String key : instructorRemarkMap.keySet()) {
|
||||
UserInfo userInfo = RongUserInfoManager.getInstance().getUserInfo(key);
|
||||
if(userInfo!=null){
|
||||
userInfo.setName(instructorRemarkMap.get(key));
|
||||
RongUserInfoManager.getInstance().refreshUserInfoCache(userInfo);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -3,6 +3,7 @@ package com.yunbao.common.utils;
|
||||
import android.app.Activity;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
@@ -218,6 +219,18 @@ public class GoogleUtils {
|
||||
}
|
||||
}
|
||||
|
||||
public void logEvent(String key, Bundle bundle) {
|
||||
try {
|
||||
Context ctn = mActivity == null ? mContext : mActivity;
|
||||
Class<?> clz = ctn.getClassLoader().loadClass("com.shayu.lib_google.utils.FirebaseManage");
|
||||
Object object = clz.getConstructor(Context.class).newInstance(ctn);
|
||||
object.getClass().getMethod("logEvent", String.class, Bundle.class)
|
||||
.invoke(object, key, bundle);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
public void queryPurchasesAsync() {
|
||||
try {
|
||||
Class<?> clz = mActivity.getClassLoader().loadClass("com.shayu.lib_google.utils.GoogleBillingManage");
|
||||
@@ -232,7 +245,7 @@ public class GoogleUtils {
|
||||
|
||||
try {
|
||||
Class<?> clz = mContext.getClassLoader().loadClass("com.shayu.lib_google.utils.FirebaseManage");
|
||||
googlePay= clz.getConstructor(Context.class).newInstance(mContext);
|
||||
googlePay = clz.getConstructor(Context.class).newInstance(mContext);
|
||||
googlePay.getClass()
|
||||
.getMethod("setFirebaseCrashData", String.class, String.class, String.class, String.class, String.class, String.class, String.class, String.class, String.class)
|
||||
.invoke(googlePay, uid, userData, isGoogle, cpu, runTime, enterRoom, slidingRoom, playSvga, ActivitySize);
|
||||
|
||||
Reference in New Issue
Block a user