首次安装 w2a多次问题。

This commit is contained in:
guozhen 2025-05-15 13:44:11 +08:00
parent 17b6f85f46
commit 194bd4bef4

View File

@ -355,15 +355,15 @@ public class AExtractionActivity extends IDDetailsRoundActivity<TManifestService
public void logic() {
gsAppViewModel.getW2aSelfAttributionLiveData().observe(this, gsDeepLinkResBeanIMACloseStroke -> {
if (gsDeepLinkResBeanIMACloseStroke != null) {
if (needSave) {
adjustToDetail();
}
} else {
if (needSave) {
adjustToDetail();
}
}
// if (gsDeepLinkResBeanIMACloseStroke != null) {
// if (needSave) {
// adjustToDetail();
// }
// } else {
// if (needSave) {
// adjustToDetail();
// }
// }
});
userViewModel.getTranslaterLiveData().observe(this, gsTranslatesBeanIMACloseStroke -> {
if (gsTranslatesBeanIMACloseStroke != null) {
@ -447,9 +447,12 @@ public class AExtractionActivity extends IDDetailsRoundActivity<TManifestService
private void jumpDetails() {
w2aSelfAttribution(clipString);
clipString = "";
LRewards.startPlayerDetails(AExtractionActivity.this, shortPlayId, videoId);
TIndicator.saveString(ITItem.Constants_DeepLinkData_URL, "");
cleanClipData();
needSave = false;
}
private String getClipContent() {
@ -500,14 +503,16 @@ public class AExtractionActivity extends IDDetailsRoundActivity<TManifestService
return new Pair(videoId, shortPlayId);
}
private String clipString;
@Override
protected void onResume() {
super.onResume();
LogUtils.d("onResume");
LogUtils.d("AExtractionActivity onResume");
getWindow().getDecorView().post(new Runnable() {
@Override
public void run() {
String clipString = getClipContent();
clipString = getClipContent();
LogUtils.d("clipString: " + clipString);
if (clipString.startsWith("[QJ]") && clipString.contains("zyreoapp")) {
Pair extractVideoInfo = parseVideoAndShortPlayIds(clipString);
@ -517,7 +522,10 @@ public class AExtractionActivity extends IDDetailsRoundActivity<TManifestService
if (shortPlayId != 0) {
TIndicator.saveString(ITItem.Constants_DeepLinkData_URL, "");
needSave = true;
w2aSelfAttribution(clipString);
// w2aSelfAttribution(clipString);
if(!isRequestNotify){
jumpDetails();
}
}
}