mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-18 11:57:18 +01:00
47 lines
1.6 KiB
Java
47 lines
1.6 KiB
Java
package androidx.browser.trusted.sharing;
|
|
|
|
import android.net.Uri;
|
|
import android.os.Bundle;
|
|
import androidx.annotation.NonNull;
|
|
import androidx.annotation.Nullable;
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
/* loaded from: classes.dex */
|
|
public final class ShareData {
|
|
public static final String KEY_TEXT = "androidx.browser.trusted.sharing.KEY_TEXT";
|
|
public static final String KEY_TITLE = "androidx.browser.trusted.sharing.KEY_TITLE";
|
|
public static final String KEY_URIS = "androidx.browser.trusted.sharing.KEY_URIS";
|
|
|
|
@Nullable
|
|
public final String text;
|
|
|
|
@Nullable
|
|
public final String title;
|
|
|
|
@Nullable
|
|
public final List<Uri> uris;
|
|
|
|
public ShareData(@Nullable String str, @Nullable String str2, @Nullable List<Uri> list) {
|
|
this.title = str;
|
|
this.text = str2;
|
|
this.uris = list;
|
|
}
|
|
|
|
@NonNull
|
|
public static ShareData fromBundle(@NonNull Bundle bundle) {
|
|
return new ShareData(bundle.getString("androidx.browser.trusted.sharing.KEY_TITLE"), bundle.getString("androidx.browser.trusted.sharing.KEY_TEXT"), bundle.getParcelableArrayList(KEY_URIS));
|
|
}
|
|
|
|
@NonNull
|
|
public Bundle toBundle() {
|
|
Bundle bundle = new Bundle();
|
|
bundle.putString("androidx.browser.trusted.sharing.KEY_TITLE", this.title);
|
|
bundle.putString("androidx.browser.trusted.sharing.KEY_TEXT", this.text);
|
|
if (this.uris != null) {
|
|
bundle.putParcelableArrayList(KEY_URIS, new ArrayList<>(this.uris));
|
|
}
|
|
return bundle;
|
|
}
|
|
}
|