正在查看: OLX India v19.42.007 应用的 LocationActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: OLX India v19.42.007 应用的 LocationActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.olxgroup.panamera.app.buyers.location.activities;
import android.content.Intent;
import android.os.Bundle;
import com.google.gson.Gson;
import com.naspers.ragnarok.domain.constant.Constants;
import com.olx.southasia.p;
import com.olxgroup.panamera.app.buyers.location.fragments.LocationFragment;
import com.olxgroup.panamera.app.buyers.location.fragments.PlaceFragment;
import com.olxgroup.panamera.domain.location.entity.UserLocation;
public class LocationActivity extends a implements com.olxgroup.panamera.app.buyers.location.a {
Gson i0;
private int p3() {
return getIntent().getIntExtra("activityMapTitle", p.publish);
}
@Override
public void b0(long j, String str, int i) {
k3(PlaceFragment.i5(j, str, i));
}
public void finish() {
boolean o3 = o3();
super/*android.app.Activity*/.finish();
if (o3) {
E2();
} else {
C2();
}
}
@Override
public void finishFlow(UserLocation userLocation, boolean z) {
if (userLocation != null) {
userLocation.getPlaceDescription();
}
Intent intent = new Intent();
intent.putExtra("location", this.i0.toJson(userLocation));
intent.putExtra("is_near_me", z);
setResult(-1, intent);
finish();
}
public boolean o3() {
return getIntent().getStringExtra(Constants.ExtraKeys.ORIGIN_SOURCE).equals(Constants.Intent.Extra.FILTER);
}
@Override
public void onActivityResult(int i, int i2, Intent intent) {
super.onActivityResult(i, i2, intent);
if (i == 1001) {
if (i2 == -1) {
u2().locationAction("gps", "yes", "tree");
} else {
u2().locationAction("gps", "no", "tree");
}
}
}
@Override
public void onBackPressed() {
if (getSupportFragmentManager().y0() <= 1) {
finish();
} else {
getSupportFragmentManager().r1();
}
}
@Override
protected void onCreate(Bundle bundle) {
super.onCreate(bundle);
n3(true);
M2().setTitle(p3());
if (bundle == null) {
if (o3()) {
c3(new LocationFragment(), true, false);
} else {
B2();
c3(new LocationFragment(), false, true);
}
}
}
@Override
public boolean onSupportNavigateUp() {
onBackPressed();
return true;
}
@Override
public boolean r0() {
return getIntent().getStringExtra(Constants.ExtraKeys.ORIGIN_SOURCE).equals(Constants.Source.POSTING) || getIntent().getStringExtra(Constants.ExtraKeys.ORIGIN_SOURCE).equals("editing") || (getIntent().hasExtra("is_user_from_posting_deeplink") && getIntent().getBooleanExtra("is_user_from_posting_deeplink", false));
}
}