正在查看: Biko v2.0.23 应用的 RequestIntentSender.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Biko v2.0.23 应用的 RequestIntentSender.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.github.florent37.inlineactivityresult.request;
import android.content.Intent;
import android.content.IntentSender;
import android.os.Bundle;
import android.os.Parcel;
import android.os.Parcelable;
import androidx.fragment.app.Fragment;
public class RequestIntentSender implements Request {
public static final Parcelable.Creator<RequestIntentSender> CREATOR = new Parcelable.Creator<RequestIntentSender>() {
@Override
public RequestIntentSender createFromParcel(Parcel parcel) {
return new RequestIntentSender(parcel);
}
@Override
public RequestIntentSender[] newArray(int i) {
return new RequestIntentSender[i];
}
};
private int extraFlags;
private Intent fillInIntent;
private int flagsMask;
private int flagsValues;
private IntentSender intentSender;
private Bundle options;
@Override
public int describeContents() {
return 0;
}
public RequestIntentSender(IntentSender intentSender, Intent intent, int i, int i2, int i3, Bundle bundle) {
this.intentSender = intentSender;
this.fillInIntent = intent;
this.flagsMask = i;
this.flagsValues = i2;
this.extraFlags = i3;
this.options = bundle;
}
private RequestIntentSender(Parcel parcel) {
this.intentSender = (IntentSender) parcel.readParcelable(IntentSender.class.getClassLoader());
this.fillInIntent = (Intent) parcel.readParcelable(Intent.class.getClassLoader());
this.flagsMask = parcel.readInt();
this.extraFlags = parcel.readInt();
this.options = (Bundle) parcel.readParcelable(Bundle.class.getClassLoader());
}
public IntentSender getIntentSender() {
return this.intentSender;
}
public Intent getFillInIntent() {
return this.fillInIntent;
}
public int getFlagsMask() {
return this.flagsMask;
}
public int getFlagsValues() {
return this.flagsValues;
}
public int getExtraFlags() {
return this.extraFlags;
}
public Bundle getOptions() {
return this.options;
}
@Override
public void execute(Fragment fragment, int i) throws Exception {
startIntentSender(fragment, this, i);
}
@Override
public void writeToParcel(Parcel parcel, int i) {
parcel.writeParcelable(this.intentSender, i);
parcel.writeParcelable(this.fillInIntent, i);
parcel.writeInt(this.flagsMask);
parcel.writeInt(this.extraFlags);
parcel.writeParcelable(this.options, i);
}
private void startIntentSender(Fragment fragment, RequestIntentSender requestIntentSender, int i) throws IntentSender.SendIntentException {
fragment.startIntentSenderForResult(requestIntentSender.getIntentSender(), i, requestIntentSender.getFillInIntent(), requestIntentSender.getFlagsMask(), requestIntentSender.getFlagsValues(), requestIntentSender.getExtraFlags(), requestIntentSender.getOptions());
}
}