mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
158 lines
11 KiB
Java
158 lines
11 KiB
Java
package androidx.compose.foundation.layout;
|
|
|
|
import android.view.View;
|
|
import android.view.ViewConfiguration;
|
|
import androidx.compose.runtime.Composer;
|
|
import androidx.compose.runtime.ComposerKt;
|
|
import androidx.compose.runtime.DisposableEffectResult;
|
|
import androidx.compose.runtime.DisposableEffectScope;
|
|
import androidx.compose.runtime.EffectsKt;
|
|
import androidx.compose.runtime.ProvidableCompositionLocal;
|
|
import androidx.compose.ui.ComposedModifierKt;
|
|
import androidx.compose.ui.Modifier;
|
|
import androidx.compose.ui.input.nestedscroll.NestedScrollConnection;
|
|
import androidx.compose.ui.input.nestedscroll.NestedScrollModifierKt;
|
|
import androidx.compose.ui.platform.AndroidCompositionLocals_androidKt;
|
|
import androidx.compose.ui.platform.CompositionLocalsKt;
|
|
import androidx.compose.ui.platform.InspectableValueKt;
|
|
import androidx.compose.ui.platform.InspectorInfo;
|
|
import androidx.compose.ui.unit.Density;
|
|
import androidx.compose.ui.unit.LayoutDirection;
|
|
import kotlin.Metadata;
|
|
import kotlin.Unit;
|
|
import kotlin.jvm.functions.Function1;
|
|
import kotlin.jvm.functions.Function3;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* compiled from: WindowInsetsConnection.android.kt */
|
|
@Metadata(d1 = {"\u0000,\n\u0000\n\u0002\u0010\u0006\n\u0002\b\u0002\n\u0002\u0010\u0007\n\u0002\b\b\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\u001a%\u0010\f\u001a\u00020\r2\u0006\u0010\u000e\u001a\u00020\u000f2\u0006\u0010\u0010\u001a\u00020\u0011H\u0001ø\u0001\u0000ø\u0001\u0001¢\u0006\u0004\b\u0012\u0010\u0013\u001a\f\u0010\u0014\u001a\u00020\u0015*\u00020\u0015H\u0007\"\u000e\u0010\u0000\u001a\u00020\u0001X\u0082\u0004¢\u0006\u0002\n\u0000\"\u000e\u0010\u0002\u001a\u00020\u0001X\u0082\u0004¢\u0006\u0002\n\u0000\"\u000e\u0010\u0003\u001a\u00020\u0004X\u0082T¢\u0006\u0002\n\u0000\"\u000e\u0010\u0005\u001a\u00020\u0004X\u0082T¢\u0006\u0002\n\u0000\"\u000e\u0010\u0006\u001a\u00020\u0004X\u0082T¢\u0006\u0002\n\u0000\"\u000e\u0010\u0007\u001a\u00020\u0004X\u0082T¢\u0006\u0002\n\u0000\"\u000e\u0010\b\u001a\u00020\u0004X\u0082T¢\u0006\u0002\n\u0000\"\u000e\u0010\t\u001a\u00020\u0004X\u0082T¢\u0006\u0002\n\u0000\"\u000e\u0010\n\u001a\u00020\u0004X\u0082\u0004¢\u0006\u0002\n\u0000\"\u000e\u0010\u000b\u001a\u00020\u0004X\u0082T¢\u0006\u0002\n\u0000\u0082\u0002\u000b\n\u0005\b¡\u001e0\u0001\n\u0002\b\u0019¨\u0006\u0016"}, d2 = {"DecelMinusOne", "", "DecelerationRate", "EndTension", "", "GravityEarth", "InchesPerMeter", "Inflection", "P1", "P2", "PlatformFlingScrollFriction", "StartTension", "rememberWindowInsetsConnection", "Landroidx/compose/ui/input/nestedscroll/NestedScrollConnection;", "windowInsets", "Landroidx/compose/foundation/layout/AndroidWindowInsets;", "side", "Landroidx/compose/foundation/layout/WindowInsetsSides;", "rememberWindowInsetsConnection-VRgvIgI", "(Landroidx/compose/foundation/layout/AndroidWindowInsets;ILandroidx/compose/runtime/Composer;I)Landroidx/compose/ui/input/nestedscroll/NestedScrollConnection;", "imeNestedScroll", "Landroidx/compose/ui/Modifier;", "foundation-layout_release"}, k = 2, mv = {1, 8, 0}, xi = 48)
|
|
/* loaded from: classes.dex */
|
|
public final class WindowInsetsConnection_androidKt {
|
|
private static final double DecelMinusOne;
|
|
private static final double DecelerationRate;
|
|
private static final float EndTension = 1.0f;
|
|
private static final float GravityEarth = 9.80665f;
|
|
private static final float InchesPerMeter = 39.37f;
|
|
private static final float Inflection = 0.35f;
|
|
private static final float P1 = 0.175f;
|
|
private static final float P2 = 0.35000002f;
|
|
private static final float PlatformFlingScrollFriction = ViewConfiguration.getScrollFriction();
|
|
private static final float StartTension = 0.5f;
|
|
|
|
public static final /* synthetic */ double access$getDecelMinusOne$p() {
|
|
return DecelMinusOne;
|
|
}
|
|
|
|
public static final /* synthetic */ double access$getDecelerationRate$p() {
|
|
return DecelerationRate;
|
|
}
|
|
|
|
public static final /* synthetic */ float access$getPlatformFlingScrollFriction$p() {
|
|
return PlatformFlingScrollFriction;
|
|
}
|
|
|
|
/* renamed from: rememberWindowInsetsConnection-VRgvIgI */
|
|
public static final NestedScrollConnection m560rememberWindowInsetsConnectionVRgvIgI(AndroidWindowInsets windowInsets, int i, Composer composer, int i2) {
|
|
Intrinsics.checkNotNullParameter(windowInsets, "windowInsets");
|
|
composer.startReplaceableGroup(-1011341039);
|
|
ComposerKt.sourceInformation(composer, "C(rememberWindowInsetsConnection)P(1,0:c#foundation.layout.WindowInsetsSides)112@4547L7,114@4660L7,115@4699L7,116@4728L149,119@4882L99:WindowInsetsConnection.android.kt#2w3rfo");
|
|
if (ComposerKt.isTraceInProgress()) {
|
|
ComposerKt.traceEventStart(-1011341039, i2, -1, "androidx.compose.foundation.layout.rememberWindowInsetsConnection (WindowInsetsConnection.android.kt:105)");
|
|
}
|
|
ProvidableCompositionLocal<LayoutDirection> localLayoutDirection = CompositionLocalsKt.getLocalLayoutDirection();
|
|
ComposerKt.sourceInformationMarkerStart(composer, 2023513938, "CC:CompositionLocal.kt#9igjgp");
|
|
Object consume = composer.consume(localLayoutDirection);
|
|
ComposerKt.sourceInformationMarkerEnd(composer);
|
|
SideCalculator m520chooseCalculatorni1skBw = SideCalculator.INSTANCE.m520chooseCalculatorni1skBw(i, (LayoutDirection) consume);
|
|
ProvidableCompositionLocal<View> localView = AndroidCompositionLocals_androidKt.getLocalView();
|
|
ComposerKt.sourceInformationMarkerStart(composer, 2023513938, "CC:CompositionLocal.kt#9igjgp");
|
|
Object consume2 = composer.consume(localView);
|
|
ComposerKt.sourceInformationMarkerEnd(composer);
|
|
View view = (View) consume2;
|
|
ProvidableCompositionLocal<Density> localDensity = CompositionLocalsKt.getLocalDensity();
|
|
ComposerKt.sourceInformationMarkerStart(composer, 2023513938, "CC:CompositionLocal.kt#9igjgp");
|
|
Object consume3 = composer.consume(localDensity);
|
|
ComposerKt.sourceInformationMarkerEnd(composer);
|
|
Density density = (Density) consume3;
|
|
Object[] objArr = {windowInsets, view, m520chooseCalculatorni1skBw, density};
|
|
composer.startReplaceableGroup(-568225417);
|
|
ComposerKt.sourceInformation(composer, "CC(remember)P(1):Composables.kt#9igjgp");
|
|
boolean z = false;
|
|
for (int i3 = 0; i3 < 4; i3++) {
|
|
z |= composer.changed(objArr[i3]);
|
|
}
|
|
Object rememberedValue = composer.rememberedValue();
|
|
if (z || rememberedValue == Composer.INSTANCE.getEmpty()) {
|
|
rememberedValue = new WindowInsetsNestedScrollConnection(windowInsets, view, m520chooseCalculatorni1skBw, density);
|
|
composer.updateRememberedValue(rememberedValue);
|
|
}
|
|
composer.endReplaceableGroup();
|
|
final WindowInsetsNestedScrollConnection windowInsetsNestedScrollConnection = (WindowInsetsNestedScrollConnection) rememberedValue;
|
|
EffectsKt.DisposableEffect(windowInsetsNestedScrollConnection, new Function1<DisposableEffectScope, DisposableEffectResult>() { // from class: androidx.compose.foundation.layout.WindowInsetsConnection_androidKt$rememberWindowInsetsConnection$1
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
{
|
|
super(1);
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function1
|
|
public final DisposableEffectResult invoke(DisposableEffectScope DisposableEffect) {
|
|
Intrinsics.checkNotNullParameter(DisposableEffect, "$this$DisposableEffect");
|
|
final WindowInsetsNestedScrollConnection windowInsetsNestedScrollConnection2 = WindowInsetsNestedScrollConnection.this;
|
|
return new DisposableEffectResult() { // from class: androidx.compose.foundation.layout.WindowInsetsConnection_androidKt$rememberWindowInsetsConnection$1$invoke$$inlined$onDispose$1
|
|
@Override // androidx.compose.runtime.DisposableEffectResult
|
|
public void dispose() {
|
|
WindowInsetsNestedScrollConnection.this.dispose();
|
|
}
|
|
};
|
|
}
|
|
}, composer, 8);
|
|
if (ComposerKt.isTraceInProgress()) {
|
|
ComposerKt.traceEventEnd();
|
|
}
|
|
composer.endReplaceableGroup();
|
|
return windowInsetsNestedScrollConnection;
|
|
}
|
|
|
|
static {
|
|
double log = Math.log(0.78d) / Math.log(0.9d);
|
|
DecelerationRate = log;
|
|
DecelMinusOne = log - 1.0d;
|
|
}
|
|
|
|
public static final Modifier imeNestedScroll(Modifier modifier) {
|
|
Intrinsics.checkNotNullParameter(modifier, "<this>");
|
|
return ComposedModifierKt.composed(modifier, InspectableValueKt.isDebugInspectorInfoEnabled() ? new Function1<InspectorInfo, Unit>() { // from class: androidx.compose.foundation.layout.WindowInsetsConnection_androidKt$imeNestedScroll$$inlined$debugInspectorInfo$1
|
|
@Override // kotlin.jvm.functions.Function1
|
|
public /* bridge */ /* synthetic */ Unit invoke(InspectorInfo inspectorInfo) {
|
|
invoke2(inspectorInfo);
|
|
return Unit.INSTANCE;
|
|
}
|
|
|
|
/* renamed from: invoke, reason: avoid collision after fix types in other method */
|
|
public final void invoke2(InspectorInfo inspectorInfo) {
|
|
Intrinsics.checkNotNullParameter(inspectorInfo, "$this$null");
|
|
inspectorInfo.setName("imeNestedScroll");
|
|
}
|
|
} : InspectableValueKt.getNoInspectorInfo(), new Function3<Modifier, Composer, Integer, Modifier>() { // from class: androidx.compose.foundation.layout.WindowInsetsConnection_androidKt$imeNestedScroll$2
|
|
@Override // kotlin.jvm.functions.Function3
|
|
public /* bridge */ /* synthetic */ Modifier invoke(Modifier modifier2, Composer composer, Integer num) {
|
|
return invoke(modifier2, composer, num.intValue());
|
|
}
|
|
|
|
public final Modifier invoke(Modifier composed, Composer composer, int i) {
|
|
Intrinsics.checkNotNullParameter(composed, "$this$composed");
|
|
composer.startReplaceableGroup(-369978792);
|
|
ComposerKt.sourceInformation(composer, "C81@3218L9,80@3155L124:WindowInsetsConnection.android.kt#2w3rfo");
|
|
if (ComposerKt.isTraceInProgress()) {
|
|
ComposerKt.traceEventStart(-369978792, i, -1, "androidx.compose.foundation.layout.imeNestedScroll.<anonymous> (WindowInsetsConnection.android.kt:79)");
|
|
}
|
|
Modifier nestedScroll$default = NestedScrollModifierKt.nestedScroll$default(composed, WindowInsetsConnection_androidKt.m560rememberWindowInsetsConnectionVRgvIgI(WindowInsetsHolder.INSTANCE.current(composer, 8).getIme(), WindowInsetsSides.INSTANCE.m582getBottomJoeWqyM(), composer, 48), null, 2, null);
|
|
if (ComposerKt.isTraceInProgress()) {
|
|
ComposerKt.traceEventEnd();
|
|
}
|
|
composer.endReplaceableGroup();
|
|
return nestedScroll$default;
|
|
}
|
|
});
|
|
}
|
|
}
|