feat: 版本更新弹窗神策埋点补充 https://jira.shanqu.cc/browse/GHZS-4434
This commit is contained in:
@ -329,8 +329,12 @@ public class UpdateManager {
|
||||
if (!isShowDownload) {
|
||||
DownloadManager.getInstance().removeObserver(dataWatcher);
|
||||
}
|
||||
if (!dismissByTouchInside.get()) {
|
||||
SensorsBridge.trackVersionUpdateDialogClick("关闭弹窗");
|
||||
if (!dismissByTouchInside.get() && appEntity != null) {
|
||||
SensorsBridge.trackVersionUpdateDialogClick(
|
||||
"关闭弹窗",
|
||||
appEntity.getAlert(),
|
||||
appEntity.isForce() ? "关闭且强退" : "仅关闭"
|
||||
);
|
||||
}
|
||||
});
|
||||
Window window = updateDialog.getWindow();
|
||||
@ -393,14 +397,17 @@ public class UpdateManager {
|
||||
});
|
||||
|
||||
cancelUpdateTextView.setOnClickListener(v -> {
|
||||
dismissByTouchInside.set(true);
|
||||
if (appEntity.isForce()) {
|
||||
exitApp();
|
||||
String cancelText = cancelUpdateTextView.getText().toString();
|
||||
SensorsBridge.trackVersionUpdateDialogClick(
|
||||
cancelText,
|
||||
appEntity.getAlert(),
|
||||
appEntity.isForce() ? "关闭且强退" : "仅关闭");
|
||||
AppExecutor.getUiExecutor().executeWithDelay(this::exitApp, 500L);
|
||||
} else {
|
||||
updateDialog.dismiss();
|
||||
}
|
||||
dismissByTouchInside.set(true);
|
||||
String cancelText = cancelUpdateTextView.getText().toString();
|
||||
SensorsBridge.trackVersionUpdateDialogClick(cancelText);
|
||||
});
|
||||
|
||||
confirmTextView.setOnClickListener(v -> {
|
||||
@ -422,7 +429,10 @@ public class UpdateManager {
|
||||
showDownloadDialog(md5);
|
||||
}
|
||||
String buttonName = confirmTextView.getText().toString();
|
||||
SensorsBridge.trackVersionUpdateDialogClick(buttonName);
|
||||
SensorsBridge.trackVersionUpdateDialogClick(
|
||||
buttonName,
|
||||
appEntity.getAlert(),
|
||||
appEntity.isForce() ? "关闭且强退" : "仅关闭");
|
||||
});
|
||||
|
||||
if (appEntity.isForce()) {
|
||||
@ -433,7 +443,7 @@ public class UpdateManager {
|
||||
updateDialog.setContentView(view);
|
||||
updateDialog.show();
|
||||
|
||||
SensorsBridge.trackVersionUpdateDialogShow();
|
||||
SensorsBridge.trackVersionUpdateDialogShow(appEntity.getAlert(), appEntity.isForce() ? "关闭且强退" : "仅关闭");
|
||||
|
||||
DataLogUtils.uploadUpgradeLog(context, "notice"); //上传更新通知弹窗数据
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user