- 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
65 lines
2.9 KiB
Java
65 lines
2.9 KiB
Java
package com.facebook.share.internal;
|
|
|
|
import android.os.Bundle;
|
|
import com.facebook.internal.Utility;
|
|
import com.facebook.share.model.ShareContent;
|
|
import com.facebook.share.model.ShareLinkContent;
|
|
import com.facebook.share.model.SharePhotoContent;
|
|
import com.facebook.share.model.ShareVideoContent;
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
import java.util.UUID;
|
|
import kotlin.collections.CollectionsKt__CollectionsKt;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class LegacyNativeDialogParameters {
|
|
public static final LegacyNativeDialogParameters INSTANCE = new LegacyNativeDialogParameters();
|
|
|
|
private LegacyNativeDialogParameters() {
|
|
}
|
|
|
|
public static final Bundle create(UUID callId, ShareContent<?, ?> shareContent, boolean z) {
|
|
Intrinsics.checkNotNullParameter(callId, "callId");
|
|
Intrinsics.checkNotNullParameter(shareContent, "shareContent");
|
|
if (shareContent instanceof ShareLinkContent) {
|
|
return INSTANCE.create((ShareLinkContent) shareContent, z);
|
|
}
|
|
if (shareContent instanceof SharePhotoContent) {
|
|
ShareInternalUtility shareInternalUtility = ShareInternalUtility.INSTANCE;
|
|
SharePhotoContent sharePhotoContent = (SharePhotoContent) shareContent;
|
|
List<String> photoUrls = ShareInternalUtility.getPhotoUrls(sharePhotoContent, callId);
|
|
if (photoUrls == null) {
|
|
photoUrls = CollectionsKt__CollectionsKt.emptyList();
|
|
}
|
|
return INSTANCE.create(sharePhotoContent, photoUrls, z);
|
|
}
|
|
boolean z2 = shareContent instanceof ShareVideoContent;
|
|
return null;
|
|
}
|
|
|
|
private final Bundle create(ShareLinkContent shareLinkContent, boolean z) {
|
|
return createBaseParameters(shareLinkContent, z);
|
|
}
|
|
|
|
private final Bundle create(SharePhotoContent sharePhotoContent, List<String> list, boolean z) {
|
|
Bundle createBaseParameters = createBaseParameters(sharePhotoContent, z);
|
|
createBaseParameters.putStringArrayList(ShareConstants.LEGACY_PHOTOS, new ArrayList<>(list));
|
|
return createBaseParameters;
|
|
}
|
|
|
|
private final Bundle createBaseParameters(ShareContent<?, ?> shareContent, boolean z) {
|
|
Bundle bundle = new Bundle();
|
|
Utility utility = Utility.INSTANCE;
|
|
Utility.putUri(bundle, ShareConstants.LEGACY_LINK, shareContent.getContentUrl());
|
|
Utility.putNonEmptyString(bundle, ShareConstants.LEGACY_PLACE_TAG, shareContent.getPlaceId());
|
|
Utility.putNonEmptyString(bundle, ShareConstants.LEGACY_REF, shareContent.getRef());
|
|
bundle.putBoolean(ShareConstants.LEGACY_DATA_FAILURES_FATAL, z);
|
|
List<String> peopleIds = shareContent.getPeopleIds();
|
|
if (peopleIds != null && !peopleIds.isEmpty()) {
|
|
bundle.putStringArrayList(ShareConstants.LEGACY_FRIEND_TAGS, new ArrayList<>(peopleIds));
|
|
}
|
|
return bundle;
|
|
}
|
|
}
|