Commit 89cdc6d8 by sikang

update deviceinfo_upload_logic

parent 16c3a078
......@@ -91,9 +91,12 @@ public class UserPresenter extends BasePresenter<UserApi> {
@Override
public void accept(GatewayInfoBean gatewayInfoBean) throws Exception {
Gateway.setGatewayInfoBean(gatewayInfoBean);
TrackEventHelper.logEvent(DeviceInfo.getHardwareInfo());
String pkgs = DeviceInfo.getPkgsFromeAppList(DeviceInfo.getAppList(LibConfig.getContext(), 20));
TrackEventHelper.logEvent(pkgs);
if (!PreferencesManager.get().getBoolean("device_info_uploaded", false)) {
TrackEventHelper.logEvent(DeviceInfo.getHardwareInfo());
String pkgs = DeviceInfo.getPkgsFromeAppList(DeviceInfo.getAppList(LibConfig.getContext(), 20));
TrackEventHelper.logEvent(pkgs);
PreferencesManager.get().saveData("device_info_uploaded", true);
}
getCustomerMsg("");
EventBus.getDefault().post(ActionEnum.GATEWAY_UPDATED);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment