正在查看: bbinstant v6.24.0 应用的 SplashActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: bbinstant v6.24.0 应用的 SplashActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.bigbasket.bbinstant.ui.landing;
import android.content.Context;
import android.location.Location;
import android.os.Bundle;
import android.view.View;
import com.bigbasket.bbinstant.core.io.wifi.q;
import com.bigbasket.bbinstant.ui.BaseActivity;
import io.reactivex.Completable;
import io.reactivex.android.schedulers.AndroidSchedulers;
import io.reactivex.functions.Action;
import io.reactivex.schedulers.Schedulers;
public class SplashActivity extends BaseActivity implements d, com.bigbasket.bbinstant.c {
private View.OnClickListener listener = new a();
private c mPresenter;
private View mScanButton;
private View mSlowNetworkText;
class a implements View.OnClickListener {
a() {
}
@Override
public void onClick(View view) {
if (view.getId() != 2131361954) {
return;
}
SplashActivity.this.mPresenter.onScanClick(view);
}
}
public void lambda$onRootCheckComplete$0(Location location) throws Exception {
this.mPresenter.onLoad(location);
}
public static void lambda$onRootCheckComplete$1() throws Exception {
}
@Override
public Context getContext() {
return this;
}
@Override
protected void onCreate(Bundle bundle) {
super.onCreate(bundle);
setContentView(2131558451);
this.mScanButton = findViewById(2131361954);
this.mSlowNetworkText = findViewById(2131362602);
this.mScanButton.setOnClickListener(this.listener);
this.mPresenter = new n(this);
com.bigbasket.bbinstant.core.utils.f.INSTANCE.isDeviceRooted(this);
}
@Override
protected void onDestroy() {
super.onDestroy();
}
@Override
protected void onResume() {
super.onResume();
}
@Override
public void onRootCheckComplete(boolean z) {
if (z) {
finish();
} else {
final Location location = new com.bigbasket.bbinstant.core.utils.a(this).getLocation();
Completable.fromAction(new Action() {
public final void run() {
SplashActivity.this.lambda$onRootCheckComplete$0(location);
}
}).subscribeOn(Schedulers.io()).observeOn(AndroidSchedulers.mainThread()).subscribe(new Action() {
public final void run() {
SplashActivity.lambda$onRootCheckComplete$1();
}
}, new q());
}
}
@Override
public void showScanButton(boolean z) {
this.mSlowNetworkText.setVisibility(z ? 0 : 8);
this.mScanButton.setVisibility(z ? 0 : 8);
}
}