正在查看: Oolka v2.4.42 应用的 HyperIntentSenderDelegate.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Oolka v2.4.42 应用的 HyperIntentSenderDelegate.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package in.juspay.hypersdk.lifecycle;
import android.content.Intent;
import android.content.IntentSender;
import android.os.Bundle;
import in.juspay.hyper.constants.Labels;
import in.juspay.hyper.constants.LogCategory;
import in.juspay.hyper.constants.LogSubCategory;
import in.juspay.hypersdk.core.JuspayServices;
import in.juspay.hypersdk.ui.IntentSenderDelegate;
import java.util.Queue;
import java.util.concurrent.ConcurrentLinkedQueue;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import org.jetbrains.annotations.NotNull;
@Metadata
public final class HyperIntentSenderDelegate implements IntentSenderDelegate {
@NotNull
private final Queue<IntentQueueData> intentSenderQueue;
@NotNull
private final JuspayServices juspayServices;
@Metadata
public static final class IntentQueueData {
private final int extraFlags;
private final Intent fillInIntent;
private final int flagMask;
private final int flagValues;
@NotNull
private final IntentSender intentSender;
private final Bundle options;
private final int requestCode;
public IntentQueueData(@NotNull IntentSender intentSender, int i, Intent intent, int i2, int i3, int i4, Bundle bundle) {
Intrinsics.checkNotNullParameter(intentSender, "intentSender");
this.intentSender = intentSender;
this.requestCode = i;
this.fillInIntent = intent;
this.flagMask = i2;
this.flagValues = i3;
this.extraFlags = i4;
this.options = bundle;
}
public static IntentQueueData copy$default(IntentQueueData intentQueueData, IntentSender intentSender, int i, Intent intent, int i2, int i3, int i4, Bundle bundle, int i5, Object obj) {
if ((i5 & 1) != 0) {
intentSender = intentQueueData.intentSender;
}
if ((i5 & 2) != 0) {
i = intentQueueData.requestCode;
}
int i6 = i;
if ((i5 & 4) != 0) {
intent = intentQueueData.fillInIntent;
}
Intent intent2 = intent;
if ((i5 & 8) != 0) {
i2 = intentQueueData.flagMask;
}
int i7 = i2;
if ((i5 & 16) != 0) {
i3 = intentQueueData.flagValues;
}
int i8 = i3;
if ((i5 & 32) != 0) {
i4 = intentQueueData.extraFlags;
}
int i9 = i4;
if ((i5 & 64) != 0) {
bundle = intentQueueData.options;
}
return intentQueueData.copy(intentSender, i6, intent2, i7, i8, i9, bundle);
}
@NotNull
public final IntentSender component1() {
return this.intentSender;
}
public final int component2() {
return this.requestCode;
}
public final Intent component3() {
return this.fillInIntent;
}
public final int component4() {
return this.flagMask;
}
public final int component5() {
return this.flagValues;
}
public final int component6() {
return this.extraFlags;
}
public final Bundle component7() {
return this.options;
}
@NotNull
public final IntentQueueData copy(@NotNull IntentSender intentSender, int i, Intent intent, int i2, int i3, int i4, Bundle bundle) {
Intrinsics.checkNotNullParameter(intentSender, "intentSender");
return new IntentQueueData(intentSender, i, intent, i2, i3, i4, bundle);
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof IntentQueueData)) {
return false;
}
IntentQueueData intentQueueData = (IntentQueueData) obj;
return Intrinsics.areEqual(this.intentSender, intentQueueData.intentSender) && this.requestCode == intentQueueData.requestCode && Intrinsics.areEqual(this.fillInIntent, intentQueueData.fillInIntent) && this.flagMask == intentQueueData.flagMask && this.flagValues == intentQueueData.flagValues && this.extraFlags == intentQueueData.extraFlags && Intrinsics.areEqual(this.options, intentQueueData.options);
}
public final int getExtraFlags() {
return this.extraFlags;
}
public final Intent getFillInIntent() {
return this.fillInIntent;
}
public final int getFlagMask() {
return this.flagMask;
}
public final int getFlagValues() {
return this.flagValues;
}
@NotNull
public final IntentSender getIntentSender() {
return this.intentSender;
}
public final Bundle getOptions() {
return this.options;
}
public final int getRequestCode() {
return this.requestCode;
}
public int hashCode() {
int hashCode = ((this.intentSender.hashCode() * 31) + Integer.hashCode(this.requestCode)) * 31;
Intent intent = this.fillInIntent;
int hashCode2 = (((((((hashCode + (intent == null ? 0 : intent.hashCode())) * 31) + Integer.hashCode(this.flagMask)) * 31) + Integer.hashCode(this.flagValues)) * 31) + Integer.hashCode(this.extraFlags)) * 31;
Bundle bundle = this.options;
return hashCode2 + (bundle != null ? bundle.hashCode() : 0);
}
@NotNull
public String toString() {
return "IntentQueueData(intentSender=" + this.intentSender + ", requestCode=" + this.requestCode + ", fillInIntent=" + this.fillInIntent + ", flagMask=" + this.flagMask + ", flagValues=" + this.flagValues + ", extraFlags=" + this.extraFlags + ", options=" + this.options + ')';
}
}
public HyperIntentSenderDelegate(@NotNull JuspayServices juspayServices) {
Intrinsics.checkNotNullParameter(juspayServices, "juspayServices");
this.juspayServices = juspayServices;
this.intentSenderQueue = new ConcurrentLinkedQueue();
}
public final void clearQueue() {
this.intentSenderQueue.clear();
}
public final void fragmentAttached() {
for (IntentQueueData intentQueueData : this.intentSenderQueue) {
startIntentSenderForResult(intentQueueData.getIntentSender(), intentQueueData.getRequestCode(), intentQueueData.getFillInIntent(), intentQueueData.getFlagMask(), intentQueueData.getFlagValues(), intentQueueData.getExtraFlags(), intentQueueData.getOptions());
}
}
@Override
public void startIntentSenderForResult(@NotNull IntentSender intentSender, int i, Intent intent, int i2, int i3, int i4, Bundle bundle) {
Intrinsics.checkNotNullParameter(intentSender, "intentSender");
try {
HyperFragment fragment = this.juspayServices.getFragment();
if (fragment == null || !fragment.isAdded()) {
this.intentSenderQueue.add(new IntentQueueData(intentSender, i, intent, i2, i3, i4, bundle));
} else {
fragment.startIntentSenderForResult(intentSender, i, intent, i2, i3, i4, bundle);
}
} catch (Exception e) {
this.juspayServices.getSdkTracker().trackException(LogCategory.LIFECYCLE, LogSubCategory.LifeCycle.ANDROID, Labels.Android.START_INTENT_SENDER_FOR_RESULT, "Exception in startIntentSenderForResult", e);
}
}
}