version:6.5.4

fix:
update:增加一百分接口,增加清理界面
This commit is contained in:
2023-11-20 10:38:15 +08:00
parent a7af7cf2a8
commit 1bf394241c
31 changed files with 1161 additions and 835 deletions

View File

@@ -59,6 +59,7 @@ import com.baidu.location.BDLocation;
import com.baidu.location.LocationClient;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.reflect.TypeToken;
import com.tencent.mmkv.MMKV;
@@ -1082,13 +1083,19 @@ public class PushManager {
JGYUtils.getInstance().setDefaultDesktop("");
} else {
JsonObject jsonObject = GsonUtils.getJsonObject(extras);
String default_launcher = jsonObject.get("default_launcher").getAsString();
if (TextUtils.isEmpty(default_launcher)) {
JsonElement launcherElement = jsonObject.get("default_launcher");
if (launcherElement.isJsonNull()){
JGYUtils.getInstance().setDefaultDesktop("");
SPUtils.put(mContext, "default_launcher", "");
} else {
JGYUtils.getInstance().setDefaultDesktop(default_launcher);
SPUtils.put(mContext, "default_launcher", default_launcher);
}else {
String default_launcher = launcherElement.getAsString();
if ( TextUtils.isEmpty(default_launcher)) {
JGYUtils.getInstance().setDefaultDesktop("");
SPUtils.put(mContext, "default_launcher", "");
} else {
JGYUtils.getInstance().setDefaultDesktop(default_launcher);
SPUtils.put(mContext, "default_launcher", default_launcher);
}
}
}
}