- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
145 lines
4.8 KiB
Java
145 lines
4.8 KiB
Java
package com.facebook.share.model;
|
|
|
|
import android.graphics.Bitmap;
|
|
import android.net.Uri;
|
|
import android.os.Bundle;
|
|
import android.os.Parcel;
|
|
import android.os.Parcelable;
|
|
import java.util.Set;
|
|
import kotlin.collections.SetsKt__SetsKt;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class CameraEffectTextures implements ShareModel {
|
|
private final Bundle textures;
|
|
public static final Companion Companion = new Companion(null);
|
|
public static final Parcelable.Creator<CameraEffectTextures> CREATOR = new Parcelable.Creator<CameraEffectTextures>() { // from class: com.facebook.share.model.CameraEffectTextures$Companion$CREATOR$1
|
|
/* JADX WARN: Can't rename method to resolve collision */
|
|
@Override // android.os.Parcelable.Creator
|
|
public CameraEffectTextures createFromParcel(Parcel parcel) {
|
|
Intrinsics.checkNotNullParameter(parcel, "parcel");
|
|
return new CameraEffectTextures(parcel);
|
|
}
|
|
|
|
/* JADX WARN: Can't rename method to resolve collision */
|
|
@Override // android.os.Parcelable.Creator
|
|
public CameraEffectTextures[] newArray(int i) {
|
|
return new CameraEffectTextures[i];
|
|
}
|
|
};
|
|
|
|
public /* synthetic */ CameraEffectTextures(Builder builder, DefaultConstructorMarker defaultConstructorMarker) {
|
|
this(builder);
|
|
}
|
|
|
|
@Override // android.os.Parcelable
|
|
public int describeContents() {
|
|
return 0;
|
|
}
|
|
|
|
private CameraEffectTextures(Builder builder) {
|
|
this.textures = builder.getTextures$facebook_common_release();
|
|
}
|
|
|
|
public CameraEffectTextures(Parcel parcel) {
|
|
Intrinsics.checkNotNullParameter(parcel, "parcel");
|
|
this.textures = parcel.readBundle(CameraEffectTextures.class.getClassLoader());
|
|
}
|
|
|
|
public final Bitmap getTextureBitmap(String str) {
|
|
Bundle bundle = this.textures;
|
|
Object obj = bundle == null ? null : bundle.get(str);
|
|
if (obj instanceof Bitmap) {
|
|
return (Bitmap) obj;
|
|
}
|
|
return null;
|
|
}
|
|
|
|
public final Uri getTextureUri(String str) {
|
|
Bundle bundle = this.textures;
|
|
Object obj = bundle == null ? null : bundle.get(str);
|
|
if (obj instanceof Uri) {
|
|
return (Uri) obj;
|
|
}
|
|
return null;
|
|
}
|
|
|
|
public final Object get(String str) {
|
|
Bundle bundle = this.textures;
|
|
if (bundle == null) {
|
|
return null;
|
|
}
|
|
return bundle.get(str);
|
|
}
|
|
|
|
public final Set<String> keySet() {
|
|
Set<String> emptySet;
|
|
Bundle bundle = this.textures;
|
|
Set<String> keySet = bundle == null ? null : bundle.keySet();
|
|
if (keySet != null) {
|
|
return keySet;
|
|
}
|
|
emptySet = SetsKt__SetsKt.emptySet();
|
|
return emptySet;
|
|
}
|
|
|
|
@Override // android.os.Parcelable
|
|
public void writeToParcel(Parcel out, int i) {
|
|
Intrinsics.checkNotNullParameter(out, "out");
|
|
out.writeBundle(this.textures);
|
|
}
|
|
|
|
public static final class Builder implements ShareModelBuilder<CameraEffectTextures, Builder> {
|
|
private final Bundle textures = new Bundle();
|
|
|
|
public final Bundle getTextures$facebook_common_release() {
|
|
return this.textures;
|
|
}
|
|
|
|
public final Builder putTexture(String key, Bitmap bitmap) {
|
|
Intrinsics.checkNotNullParameter(key, "key");
|
|
return putParcelableTexture(key, bitmap);
|
|
}
|
|
|
|
public final Builder putTexture(String key, Uri uri) {
|
|
Intrinsics.checkNotNullParameter(key, "key");
|
|
return putParcelableTexture(key, uri);
|
|
}
|
|
|
|
private final Builder putParcelableTexture(String str, Parcelable parcelable) {
|
|
if (str.length() > 0 && parcelable != null) {
|
|
this.textures.putParcelable(str, parcelable);
|
|
}
|
|
return this;
|
|
}
|
|
|
|
@Override // com.facebook.share.model.ShareModelBuilder
|
|
public Builder readFrom(CameraEffectTextures cameraEffectTextures) {
|
|
if (cameraEffectTextures != null) {
|
|
this.textures.putAll(cameraEffectTextures.textures);
|
|
}
|
|
return this;
|
|
}
|
|
|
|
public final Builder readFrom(Parcel parcel) {
|
|
Intrinsics.checkNotNullParameter(parcel, "parcel");
|
|
return readFrom((CameraEffectTextures) parcel.readParcelable(CameraEffectTextures.class.getClassLoader()));
|
|
}
|
|
|
|
@Override // com.facebook.share.ShareBuilder
|
|
public CameraEffectTextures build() {
|
|
return new CameraEffectTextures(this, null);
|
|
}
|
|
}
|
|
|
|
public static final class Companion {
|
|
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
|
this();
|
|
}
|
|
|
|
private Companion() {
|
|
}
|
|
}
|
|
}
|