mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-15 02:17:18 +01:00
66 lines
2.5 KiB
Java
66 lines
2.5 KiB
Java
package androidx.browser.trusted;
|
|
|
|
import android.os.Bundle;
|
|
import androidx.annotation.NonNull;
|
|
import androidx.biometric.ErrorUtils$$ExternalSyntheticOutline0;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
/* loaded from: classes.dex */
|
|
public interface TrustedWebActivityDisplayMode {
|
|
public static final String KEY_ID = "androidx.browser.trusted.displaymode.KEY_ID";
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
public static class DefaultMode implements TrustedWebActivityDisplayMode {
|
|
private static final int ID = 0;
|
|
|
|
@Override // androidx.browser.trusted.TrustedWebActivityDisplayMode
|
|
@NonNull
|
|
public Bundle toBundle() {
|
|
return ErrorUtils$$ExternalSyntheticOutline0.m(0, TrustedWebActivityDisplayMode.KEY_ID);
|
|
}
|
|
}
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
public static class ImmersiveMode implements TrustedWebActivityDisplayMode {
|
|
private static final int ID = 1;
|
|
public static final String KEY_CUTOUT_MODE = "androidx.browser.trusted.displaymode.KEY_CUTOUT_MODE";
|
|
public static final String KEY_STICKY = "androidx.browser.trusted.displaymode.KEY_STICKY";
|
|
private final boolean mIsSticky;
|
|
private final int mLayoutInDisplayCutoutMode;
|
|
|
|
public ImmersiveMode(boolean z, int i) {
|
|
this.mIsSticky = z;
|
|
this.mLayoutInDisplayCutoutMode = i;
|
|
}
|
|
|
|
@NonNull
|
|
public static TrustedWebActivityDisplayMode fromBundle(@NonNull Bundle bundle) {
|
|
return new ImmersiveMode(bundle.getBoolean(KEY_STICKY), bundle.getInt(KEY_CUTOUT_MODE));
|
|
}
|
|
|
|
public boolean isSticky() {
|
|
return this.mIsSticky;
|
|
}
|
|
|
|
public int layoutInDisplayCutoutMode() {
|
|
return this.mLayoutInDisplayCutoutMode;
|
|
}
|
|
|
|
@Override // androidx.browser.trusted.TrustedWebActivityDisplayMode
|
|
@NonNull
|
|
public Bundle toBundle() {
|
|
Bundle m = ErrorUtils$$ExternalSyntheticOutline0.m(1, TrustedWebActivityDisplayMode.KEY_ID);
|
|
m.putBoolean(KEY_STICKY, this.mIsSticky);
|
|
m.putInt(KEY_CUTOUT_MODE, this.mLayoutInDisplayCutoutMode);
|
|
return m;
|
|
}
|
|
}
|
|
|
|
@NonNull
|
|
static TrustedWebActivityDisplayMode fromBundle(@NonNull Bundle bundle) {
|
|
return bundle.getInt(KEY_ID) != 1 ? new DefaultMode() : ImmersiveMode.fromBundle(bundle);
|
|
}
|
|
|
|
@NonNull
|
|
Bundle toBundle();
|
|
}
|