正在查看: OLX India v19.42.007 应用的 LoadingActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: OLX India v19.42.007 应用的 LoadingActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.olxgroup.panamera.app.buyers.adDetails.activities;
import android.os.Bundle;
import com.naspers.ragnarok.domain.constant.Constants;
import com.olxgroup.panamera.app.buyers.c2b.entities.AdItemDetailBundle;
import com.olxgroup.panamera.app.users.profile.activities.ProfileActivity;
import com.olxgroup.panamera.domain.buyers.common.entity.ad.AdItem;
import com.olxgroup.panamera.domain.shell.LoggerDomainContract;
import com.olxgroup.panamera.domain.users.common.entity.User;
import java.util.Timer;
import java.util.TimerTask;
import olx.com.delorean.domain.interactor.GetAdUseCase;
import olx.com.delorean.domain.interactor.UseCaseObserver;
public class LoadingActivity extends n {
private boolean a0 = false;
private AdItem b0 = null;
private AdItemDetailBundle c0;
LoggerDomainContract d0;
GetAdUseCase e0;
public class TimerAd extends TimerTask {
public TimerAd() {
}
@Override
public void run() {
LoadingActivity.this.a0 = true;
String action = LoadingActivity.this.getIntent().getAction();
action.hashCode();
if (action.equals("load_profile")) {
LoadingActivity.this.M2();
} else if (!action.equals("load_ad")) {
LoadingActivity.this.finish();
} else if (LoadingActivity.this.b0 != null) {
LoadingActivity.this.Q2();
}
}
}
class a extends UseCaseObserver {
a() {
}
public void onNext(AdItem adItem) {
LoadingActivity.this.b0 = adItem;
LoadingActivity.this.Q2();
}
public void onError(Throwable th) {
LoadingActivity.this.d0.logException(new Exception("Error while getting lazy load ad", th));
LoadingActivity.this.finish();
}
}
private void L2() {
Bundle extras = getIntent().getExtras();
if (extras.containsKey(Constants.AD_ID)) {
P2(extras.getString(Constants.AD_ID));
} else {
finish();
}
}
public void M2() {
Bundle extras = getIntent().getExtras();
boolean containsKey = extras.containsKey(Constants.ExtraKeys.PROFILE_ID);
boolean containsKey2 = extras.containsKey("profile_name");
if (containsKey && containsKey2) {
R2(extras.getString(Constants.ExtraKeys.PROFILE_ID), extras.getString("profile_name"));
} else {
finish();
}
}
private void O2() {
if (getIntent() != null) {
this.c0 = (AdItemDetailBundle) getIntent().getParcelableExtra(Constants.Intent.Extra.C2B_AD_ITEM_DETAIL);
}
}
private void P2(String str) {
this.e0.execute(N2(), GetAdUseCase.Params.forFullAd(str));
}
public void Q2() {
if (isFinishing() || !this.a0 || this.b0 == null) {
return;
}
if (this.c0 == null) {
O2();
}
startActivity(olx.com.delorean.a.i0(this.b0, this.c0));
finish();
}
private void R2(String str, String str2) {
if (isFinishing() || !this.a0) {
return;
}
startActivity(ProfileActivity.q3(new User(str, str2)));
finish();
}
public UseCaseObserver N2() {
return new a();
}
@Override
protected void onCreate(Bundle bundle) {
super.onCreate(bundle);
setContentView(com.olx.southasia.k.activity_loading);
new Timer().schedule(new TimerAd(), 1000L);
String action = getIntent().getAction();
action.hashCode();
if (action.equals("load_profile")) {
M2();
} else if (action.equals("load_ad")) {
L2();
} else {
finish();
}
}
}