mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-30 11:02:31 -06:00
41 lines
3.1 KiB
Java
41 lines
3.1 KiB
Java
package androidx.compose.material.ripple;
|
|
|
|
import java.util.LinkedHashMap;
|
|
import java.util.Map;
|
|
import kotlin.Metadata;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* compiled from: RippleContainer.android.kt */
|
|
@Metadata(d1 = {"\u0000$\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010%\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0010\u0002\n\u0002\b\u0002\b\u0002\u0018\u00002\u00020\u0001B\u0005¢\u0006\u0002\u0010\u0002J\u0013\u0010\b\u001a\u0004\u0018\u00010\u00052\u0006\u0010\t\u001a\u00020\u0006H\u0086\u0002J\u0013\u0010\b\u001a\u0004\u0018\u00010\u00062\u0006\u0010\n\u001a\u00020\u0005H\u0086\u0002J\u000e\u0010\u000b\u001a\u00020\f2\u0006\u0010\t\u001a\u00020\u0006J\u0019\u0010\r\u001a\u00020\f2\u0006\u0010\t\u001a\u00020\u00062\u0006\u0010\n\u001a\u00020\u0005H\u0086\u0002R\u001a\u0010\u0003\u001a\u000e\u0012\u0004\u0012\u00020\u0005\u0012\u0004\u0012\u00020\u00060\u0004X\u0082\u0004¢\u0006\u0002\n\u0000R\u001a\u0010\u0007\u001a\u000e\u0012\u0004\u0012\u00020\u0006\u0012\u0004\u0012\u00020\u00050\u0004X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\u000e"}, d2 = {"Landroidx/compose/material/ripple/RippleHostMap;", "", "()V", "hostToIndicationMap", "", "Landroidx/compose/material/ripple/RippleHostView;", "Landroidx/compose/material/ripple/AndroidRippleIndicationInstance;", "indicationToHostMap", "get", "indicationInstance", "rippleHostView", "remove", "", "set", "material-ripple_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
|
/* loaded from: classes.dex */
|
|
public final class RippleHostMap {
|
|
private final Map<AndroidRippleIndicationInstance, RippleHostView> indicationToHostMap = new LinkedHashMap();
|
|
private final Map<RippleHostView, AndroidRippleIndicationInstance> hostToIndicationMap = new LinkedHashMap();
|
|
|
|
public final void set(AndroidRippleIndicationInstance indicationInstance, RippleHostView rippleHostView) {
|
|
Intrinsics.checkNotNullParameter(indicationInstance, "indicationInstance");
|
|
Intrinsics.checkNotNullParameter(rippleHostView, "rippleHostView");
|
|
this.indicationToHostMap.put(indicationInstance, rippleHostView);
|
|
this.hostToIndicationMap.put(rippleHostView, indicationInstance);
|
|
}
|
|
|
|
public final RippleHostView get(AndroidRippleIndicationInstance indicationInstance) {
|
|
Intrinsics.checkNotNullParameter(indicationInstance, "indicationInstance");
|
|
return this.indicationToHostMap.get(indicationInstance);
|
|
}
|
|
|
|
public final AndroidRippleIndicationInstance get(RippleHostView rippleHostView) {
|
|
Intrinsics.checkNotNullParameter(rippleHostView, "rippleHostView");
|
|
return this.hostToIndicationMap.get(rippleHostView);
|
|
}
|
|
|
|
public final void remove(AndroidRippleIndicationInstance indicationInstance) {
|
|
Intrinsics.checkNotNullParameter(indicationInstance, "indicationInstance");
|
|
RippleHostView rippleHostView = this.indicationToHostMap.get(indicationInstance);
|
|
if (rippleHostView != null) {
|
|
this.hostToIndicationMap.remove(rippleHostView);
|
|
}
|
|
this.indicationToHostMap.remove(indicationInstance);
|
|
}
|
|
}
|