正在查看: Meine NEW v2.0.3616 应用的 c.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Meine NEW v2.0.3616 应用的 c.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package o0;
import android.app.Activity;
import android.app.PendingIntent;
import android.app.ProgressDialog;
import android.content.ActivityNotFoundException;
import android.content.ClipData;
import android.content.ClipDescription;
import android.content.Context;
import android.content.ContextWrapper;
import android.content.Intent;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.os.Parcelable;
import android.util.Log;
import android.view.View;
import android.view.inputmethod.InputContentInfo;
import com.github.clans.fab.FloatingActionMenu;
import com.google.android.gms.fitness.data.Bucket;
import com.google.android.gms.fitness.data.DataPoint;
import com.google.android.gms.fitness.data.DataSet;
import com.google.android.gms.fitness.data.DataType;
import com.google.android.gms.fitness.data.Field;
import com.google.android.gms.fitness.result.DataReadResponse;
import com.google.android.gms.tasks.Continuation;
import com.google.android.gms.tasks.OnFailureListener;
import com.google.android.gms.tasks.OnSuccessListener;
import com.google.android.gms.tasks.SuccessContinuation;
import com.google.android.gms.tasks.Task;
import com.google.android.gms.tasks.TaskCompletionSource;
import com.google.firebase.crashlytics.AnalyticsDeferredProxy;
import com.google.firebase.crashlytics.internal.breadcrumbs.BreadcrumbHandler;
import com.google.firebase.crashlytics.internal.breadcrumbs.BreadcrumbSource;
import com.google.firebase.crashlytics.internal.common.SessionReportingCoordinator;
import com.google.firebase.crashlytics.internal.common.Utils;
import com.google.firebase.perf.config.RemoteConfigManager;
import com.google.firebase.perf.util.Constants;
import com.google.firebase.remoteconfig.internal.ConfigContainer;
import com.google.firebase.remoteconfig.internal.ConfigFetchHandler;
import com.new_service_gmbh.mapp.ActivityCamera;
import com.new_service_gmbh.mapp.authorisation.AuthorisationActivity;
import com.new_service_gmbh.mapp.authorisation.ChangeAuthorisationActivity;
import com.new_service_gmbh.mapp.registration.ActivityRegistration;
import com.new_service_gmbh.mapp.views.ZoomableWebView;
import g5.j;
import g5.m0;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import l0.c;
import l0.f0;
import m5.i;
import m5.p;
import net.openid.appauth.AuthorizationManagementActivity;
import o0.g;
import org.json.JSONException;
import org.json.JSONObject;
import p5.e;
import w1.l;
import z6.d;
public final class c implements f, BreadcrumbSource, Continuation, OnFailureListener, SuccessContinuation, AuthorisationActivity.b, l.b, OnSuccessListener, FloatingActionMenu.c, e.c {
public final int f4772a;
public final Object f4773b;
public c(Object obj, int i5) {
this.f4772a = i5;
this.f4773b = obj;
}
public final boolean a(g gVar, int i5, Bundle bundle) {
View view = (View) this.f4773b;
int i6 = Build.VERSION.SDK_INT;
if (i6 >= 25 && (i5 & 1) != 0) {
try {
gVar.f4776a.b();
InputContentInfo inputContentInfo = (InputContentInfo) gVar.f4776a.e();
bundle = bundle == null ? new Bundle() : new Bundle(bundle);
bundle.putParcelable("androidx.core.view.extra.INPUT_CONTENT_INFO", inputContentInfo);
} catch (Exception e6) {
Log.w("InputConnectionCompat", "Can't insert content from IME; requestPermission() failed", e6);
}
}
ClipDescription d6 = gVar.f4776a.d();
g.c cVar = gVar.f4776a;
ClipData clipData = new ClipData(d6, new ClipData.Item(cVar.a()));
c.b aVar = i6 >= 31 ? new c.a(clipData, 2) : new c.C0073c(clipData, 2);
aVar.a(cVar.c());
aVar.setExtras(bundle);
return f0.j(view, aVar.build()) == null;
}
public final void b() {
AuthorisationActivity authorisationActivity = (AuthorisationActivity) this.f4773b;
AuthorisationActivity authorisationActivity2 = AuthorisationActivity.i;
authorisationActivity.g();
}
@Override
public final void c(boolean z) {
p pVar = (p) this.f4773b;
if (z) {
pVar.h.setAlpha(0.1f);
} else {
pVar.h.setAlpha(1.0f);
}
}
@Override
public final void d(Object obj) {
ChangeAuthorisationActivity changeAuthorisationActivity = (ChangeAuthorisationActivity) this.f4773b;
JSONObject jSONObject = (JSONObject) obj;
ChangeAuthorisationActivity changeAuthorisationActivity2 = ChangeAuthorisationActivity.j;
changeAuthorisationActivity.getClass();
try {
j.m(jSONObject.toString());
JSONObject jSONObject2 = jSONObject.getJSONObject("status");
if (jSONObject2.getString("code").startsWith("NOK")) {
changeAuthorisationActivity.h(jSONObject2.getString("msg"));
} else if (jSONObject2.getString("code").startsWith("OK")) {
changeAuthorisationActivity.getApplicationContext().b().r("pwd", m0.k(changeAuthorisationActivity.f.getText().toString()));
changeAuthorisationActivity.setResult(8);
changeAuthorisationActivity.c.cancel();
changeAuthorisationActivity.finish();
} else {
changeAuthorisationActivity.h(jSONObject2.getString("msg"));
}
} catch (JSONException e6) {
changeAuthorisationActivity.h(e6.toString());
}
}
public final void f() {
ActivityRegistration activityRegistration = (ActivityRegistration) this.f4773b;
int i5 = ActivityRegistration.h;
activityRegistration.getClass();
d.a aVar = new d.a(new net.openid.appauth.d(Uri.parse("https://login.new.de/auth"), Uri.parse("https://login.new.de/token"), (Uri) null, (Uri) null), Uri.parse("meinenewapp://oauth2callback"));
aVar.e = b4.d.q(Arrays.asList("profile email openid phone usercentrics"));
z6.d dVar = new z6.d(aVar.a, aVar.b, aVar.c, aVar.d, (String) null, (String) null, (String) null, (String) null, aVar.e, aVar.f, aVar.g, aVar.h, aVar.i, aVar.j, (String) null, (JSONObject) null, (String) null, Collections.unmodifiableMap(new HashMap(aVar.k)));
Intent intent = new Intent("de.new_energie.meinenew.HANDLE_AUTHORIZATION_RESPONSE");
Intent intent2 = new Intent("android.intent.action.VIEW");
boolean z = true;
intent2.putExtra("android.support.customtabs.extra.TITLE_VISIBILITY", 1);
intent2.putExtra("android.support.customtabs.extra.SHARE_MENU_ITEM", true);
intent2.putExtra("android.support.customtabs.extra.ENABLE_URLBAR_HIDING", false);
if (!intent2.hasExtra("android.support.customtabs.extra.SESSION")) {
Bundle bundle = new Bundle();
a0.j.b(bundle, "android.support.customtabs.extra.SESSION", null);
intent2.putExtras(bundle);
}
intent2.putExtra("android.support.customtabs.extra.EXTRA_ENABLE_INSTANT_APPS", true);
intent2.putExtras(new Bundle());
intent2.putExtra("androidx.browser.customtabs.extra.SHARE_STATE", 1);
intent2.addFlags(1342177280);
PendingIntent createPendingResult = activityRegistration.createPendingResult(dVar.hashCode(), intent, 0);
net.openid.appauth.c cVar = activityRegistration.d;
if (cVar.e) {
throw new IllegalStateException("Service has been disposed and rendered inoperable");
}
createPendingResult.getClass();
if (cVar.e) {
throw new IllegalStateException("Service has been disposed and rendered inoperable");
}
a7.a aVar2 = cVar.d;
if (aVar2 == null) {
throw new ActivityNotFoundException();
}
Uri d6 = dVar.d();
Boolean bool = aVar2.d;
if (!bool.booleanValue()) {
intent2 = new Intent("android.intent.action.VIEW");
}
intent2.setPackage(aVar2.a);
intent2.setData(d6);
c7.a.c("Using %s as browser for auth, custom tab = %s", new Object[]{intent2.getPackage(), bool.toString()});
Context context = cVar.a;
Intent intent3 = new Intent(context, (Class<?>) AuthorizationManagementActivity.class);
intent3.putExtra("authIntent", intent2);
intent3.putExtra("authRequest", dVar.a());
intent3.putExtra("authRequestType", "authorization");
intent3.putExtra("completeIntent", createPendingResult);
intent3.putExtra("cancelIntent", (Parcelable) null);
Context context2 = context;
while (true) {
if (!(context2 instanceof ContextWrapper)) {
z = false;
break;
} else if (context2 instanceof Activity) {
break;
} else {
context2 = ((ContextWrapper) context2).getBaseContext();
}
}
if (!z) {
intent3.addFlags(268435456);
}
context.startActivity(intent3);
}
@Override
public final void onFailure(Exception exc) {
int i5 = this.f4772a;
Object obj = this.f4773b;
switch (i5) {
case 4:
((RemoteConfigManager) obj).lambda$triggerFirebaseRemoteConfigFetchAndActivateOnSuccessfulFetch$1(exc);
break;
default:
ActivityCamera activityCamera = (ActivityCamera) obj;
ProgressDialog progressDialog = activityCamera.d;
if (progressDialog != null) {
progressDialog.dismiss();
activityCamera.d = null;
break;
}
break;
}
}
@Override
public final void onSuccess(Object obj) {
i.c cVar = (i.c) this.f4773b;
DataReadResponse dataReadResponse = (DataReadResponse) obj;
int i5 = i.c.d;
cVar.getClass();
Iterator<Bucket> it = dataReadResponse.getBuckets().iterator();
int i6 = 0;
float f6 = Constants.MIN_SAMPLING_RATE;
while (it.hasNext()) {
for (DataSet dataSet : it.next().getDataSets()) {
if (dataSet.getDataType().getName().equals(DataType.TYPE_STEP_COUNT_DELTA.getName())) {
for (DataPoint dataPoint : dataSet.getDataPoints()) {
for (Field field : dataPoint.getDataType().getFields()) {
if (field.getName().equals(Field.FIELD_STEPS.getName())) {
i6 += Integer.parseInt("" + dataPoint.getValue(field));
}
}
}
} else if (dataSet.getDataType().getName().equals(DataType.TYPE_DISTANCE_DELTA.getName())) {
for (DataPoint dataPoint2 : dataSet.getDataPoints()) {
for (Field field2 : dataPoint2.getDataType().getFields()) {
if (field2.getName().equals(Field.FIELD_DISTANCE.getName())) {
f6 += Float.parseFloat("" + dataPoint2.getValue(field2));
}
}
}
}
}
}
ZoomableWebView zoomableWebView = cVar.c.e;
if (zoomableWebView != null) {
zoomableWebView.loadUrl("javascript:if (typeof __setFitnessCount === 'function') __setFitnessCount(" + i6 + ", " + f6 + ", " + dataReadResponse.getStatus().getStatusCode() + "); void 0");
}
}
@Override
public final void registerBreadcrumbHandler(BreadcrumbHandler breadcrumbHandler) {
((AnalyticsDeferredProxy) this.f4773b).lambda$getDeferredBreadcrumbSource$0(breadcrumbHandler);
}
@Override
public final Task then(Object obj) {
Task lambda$fetchFromBackendAndCacheResponse$3;
lambda$fetchFromBackendAndCacheResponse$3 = ConfigFetchHandler.lambda$fetchFromBackendAndCacheResponse$3((ConfigFetchHandler.FetchResponse) this.f4773b, (ConfigContainer) obj);
return lambda$fetchFromBackendAndCacheResponse$3;
}
@Override
public final Object then(Task task) {
Void lambda$race$1;
boolean onReportSendComplete;
int i5 = this.f4772a;
Object obj = this.f4773b;
switch (i5) {
case 2:
onReportSendComplete = ((SessionReportingCoordinator) obj).onReportSendComplete(task);
return Boolean.valueOf(onReportSendComplete);
default:
lambda$race$1 = Utils.lambda$race$1((TaskCompletionSource) obj, task);
return lambda$race$1;
}
}
}