mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-30 11:02:31 -06:00
308 lines
22 KiB
Java
308 lines
22 KiB
Java
package androidx.compose.foundation.text;
|
|
|
|
import androidx.compose.runtime.MutableState;
|
|
import androidx.compose.runtime.RecomposeScope;
|
|
import androidx.compose.runtime.SnapshotStateKt__SnapshotStateKt;
|
|
import androidx.compose.ui.focus.FocusManager;
|
|
import androidx.compose.ui.graphics.AndroidPaint_androidKt;
|
|
import androidx.compose.ui.graphics.Paint;
|
|
import androidx.compose.ui.layout.LayoutCoordinates;
|
|
import androidx.compose.ui.text.AnnotatedString;
|
|
import androidx.compose.ui.text.TextStyle;
|
|
import androidx.compose.ui.text.font.FontFamily;
|
|
import androidx.compose.ui.text.input.EditProcessor;
|
|
import androidx.compose.ui.text.input.ImeAction;
|
|
import androidx.compose.ui.text.input.TextFieldValue;
|
|
import androidx.compose.ui.text.input.TextInputSession;
|
|
import androidx.compose.ui.text.style.TextOverflow;
|
|
import androidx.compose.ui.unit.Density;
|
|
import androidx.compose.ui.unit.Dp;
|
|
import kotlin.Metadata;
|
|
import kotlin.Unit;
|
|
import kotlin.collections.CollectionsKt;
|
|
import kotlin.jvm.functions.Function1;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* compiled from: CoreTextField.kt */
|
|
@Metadata(d1 = {"\u0000ª\u0001\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0010\u000b\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0016\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0000\u0018\u00002\u00020\u0001B\u0015\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005¢\u0006\u0002\u0010\u0006Jo\u0010c\u001a\u0002092\u0006\u0010]\u001a\u00020^2\u0006\u0010d\u001a\u00020^2\u0006\u0010e\u001a\u00020f2\u0006\u0010g\u001a\u00020\u00102\u0006\u0010h\u001a\u00020i2\u0006\u0010j\u001a\u00020k2\u0012\u0010<\u001a\u000e\u0012\u0004\u0012\u00020=\u0012\u0004\u0012\u000209072\u0006\u0010l\u001a\u00020m2\u0006\u0010n\u001a\u00020o2\u0006\u0010p\u001a\u00020qø\u0001\u0001ø\u0001\u0000¢\u0006\u0004\br\u0010sR+\u0010\t\u001a\u00020\b2\u0006\u0010\u0007\u001a\u00020\b8F@FX\u0086\u008e\u0002¢\u0006\u0012\n\u0004\b\u000e\u0010\u000f\u001a\u0004\b\n\u0010\u000b\"\u0004\b\f\u0010\rR+\u0010\u0011\u001a\u00020\u00102\u0006\u0010\u0007\u001a\u00020\u00108F@FX\u0086\u008e\u0002¢\u0006\u0012\n\u0004\b\u0016\u0010\u000f\u001a\u0004\b\u0012\u0010\u0013\"\u0004\b\u0014\u0010\u0015R\u001c\u0010\u0017\u001a\u0004\u0018\u00010\u0018X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0019\u0010\u001a\"\u0004\b\u001b\u0010\u001cR\u001e\u0010\u001d\u001a\u00020\u00102\u0006\u0010\u0007\u001a\u00020\u0010@BX\u0086\u000e¢\u0006\b\n\u0000\u001a\u0004\b\u001d\u0010\u0013R\u000e\u0010\u001e\u001a\u00020\u001fX\u0082\u0004¢\u0006\u0002\n\u0000R\u001c\u0010 \u001a\u0004\u0018\u00010!X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\"\u0010#\"\u0004\b$\u0010%R(\u0010(\u001a\u0004\u0018\u00010'2\b\u0010&\u001a\u0004\u0018\u00010'8F@FX\u0086\u000e¢\u0006\f\u001a\u0004\b)\u0010*\"\u0004\b+\u0010,R\u0016\u0010-\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010'0.X\u0082\u0004¢\u0006\u0002\n\u0000R4\u00100\u001a\u00020/2\u0006\u0010\u0007\u001a\u00020/8F@FX\u0086\u008e\u0002ø\u0001\u0000ø\u0001\u0001ø\u0001\u0002¢\u0006\u0012\n\u0004\b5\u0010\u000f\u001a\u0004\b1\u00102\"\u0004\b3\u00104R \u00106\u001a\u000e\u0012\u0004\u0012\u000208\u0012\u0004\u0012\u00020907ø\u0001\u0000¢\u0006\b\n\u0000\u001a\u0004\b:\u0010;R\u001d\u0010<\u001a\u000e\u0012\u0004\u0012\u00020=\u0012\u0004\u0012\u00020907¢\u0006\b\n\u0000\u001a\u0004\b>\u0010;R\u001a\u0010?\u001a\u000e\u0012\u0004\u0012\u00020=\u0012\u0004\u0012\u00020907X\u0082\u000e¢\u0006\u0002\n\u0000R\u0011\u0010@\u001a\u00020A¢\u0006\b\n\u0000\u001a\u0004\bB\u0010CR\u0011\u0010\u0004\u001a\u00020\u0005¢\u0006\b\n\u0000\u001a\u0004\bD\u0010ER\u0011\u0010F\u001a\u00020G¢\u0006\b\n\u0000\u001a\u0004\bH\u0010IR+\u0010J\u001a\u00020\u00102\u0006\u0010\u0007\u001a\u00020\u00108F@FX\u0086\u008e\u0002¢\u0006\u0012\n\u0004\bM\u0010\u000f\u001a\u0004\bK\u0010\u0013\"\u0004\bL\u0010\u0015R\u001a\u0010N\u001a\u00020\u0010X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\bO\u0010\u0013\"\u0004\bP\u0010\u0015R+\u0010Q\u001a\u00020\u00102\u0006\u0010\u0007\u001a\u00020\u00108F@FX\u0086\u008e\u0002¢\u0006\u0012\n\u0004\bT\u0010\u000f\u001a\u0004\bR\u0010\u0013\"\u0004\bS\u0010\u0015R+\u0010U\u001a\u00020\u00102\u0006\u0010\u0007\u001a\u00020\u00108F@FX\u0086\u008e\u0002¢\u0006\u0012\n\u0004\bX\u0010\u000f\u001a\u0004\bV\u0010\u0013\"\u0004\bW\u0010\u0015R\u001a\u0010\u0002\u001a\u00020\u0003X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\bY\u0010Z\"\u0004\b[\u0010\\R\u001c\u0010]\u001a\u0004\u0018\u00010^X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b_\u0010`\"\u0004\ba\u0010b\u0082\u0002\u000f\n\u0002\b\u0019\n\u0005\b¡\u001e0\u0001\n\u0002\b!¨\u0006t"}, d2 = {"Landroidx/compose/foundation/text/TextFieldState;", "", "textDelegate", "Landroidx/compose/foundation/text/TextDelegate;", "recomposeScope", "Landroidx/compose/runtime/RecomposeScope;", "(Landroidx/compose/foundation/text/TextDelegate;Landroidx/compose/runtime/RecomposeScope;)V", "<set-?>", "Landroidx/compose/foundation/text/HandleState;", "handleState", "getHandleState", "()Landroidx/compose/foundation/text/HandleState;", "setHandleState", "(Landroidx/compose/foundation/text/HandleState;)V", "handleState$delegate", "Landroidx/compose/runtime/MutableState;", "", "hasFocus", "getHasFocus", "()Z", "setHasFocus", "(Z)V", "hasFocus$delegate", "inputSession", "Landroidx/compose/ui/text/input/TextInputSession;", "getInputSession", "()Landroidx/compose/ui/text/input/TextInputSession;", "setInputSession", "(Landroidx/compose/ui/text/input/TextInputSession;)V", "isLayoutResultStale", "keyboardActionRunner", "Landroidx/compose/foundation/text/KeyboardActionRunner;", "layoutCoordinates", "Landroidx/compose/ui/layout/LayoutCoordinates;", "getLayoutCoordinates", "()Landroidx/compose/ui/layout/LayoutCoordinates;", "setLayoutCoordinates", "(Landroidx/compose/ui/layout/LayoutCoordinates;)V", "value", "Landroidx/compose/foundation/text/TextLayoutResultProxy;", "layoutResult", "getLayoutResult", "()Landroidx/compose/foundation/text/TextLayoutResultProxy;", "setLayoutResult", "(Landroidx/compose/foundation/text/TextLayoutResultProxy;)V", "layoutResultState", "Landroidx/compose/runtime/MutableState;", "Landroidx/compose/ui/unit/Dp;", "minHeightForSingleLineField", "getMinHeightForSingleLineField-D9Ej5fM", "()F", "setMinHeightForSingleLineField-0680j_4", "(F)V", "minHeightForSingleLineField$delegate", "onImeActionPerformed", "Lkotlin/Function1;", "Landroidx/compose/ui/text/input/ImeAction;", "", "getOnImeActionPerformed", "()Lkotlin/jvm/functions/Function1;", "onValueChange", "Landroidx/compose/ui/text/input/TextFieldValue;", "getOnValueChange", "onValueChangeOriginal", "processor", "Landroidx/compose/ui/text/input/EditProcessor;", "getProcessor", "()Landroidx/compose/ui/text/input/EditProcessor;", "getRecomposeScope", "()Landroidx/compose/runtime/RecomposeScope;", "selectionPaint", "Landroidx/compose/ui/graphics/Paint;", "getSelectionPaint", "()Landroidx/compose/ui/graphics/Paint;", "showCursorHandle", "getShowCursorHandle", "setShowCursorHandle", "showCursorHandle$delegate", "showFloatingToolbar", "getShowFloatingToolbar", "setShowFloatingToolbar", "showSelectionHandleEnd", "getShowSelectionHandleEnd", "setShowSelectionHandleEnd", "showSelectionHandleEnd$delegate", "showSelectionHandleStart", "getShowSelectionHandleStart", "setShowSelectionHandleStart", "showSelectionHandleStart$delegate", "getTextDelegate", "()Landroidx/compose/foundation/text/TextDelegate;", "setTextDelegate", "(Landroidx/compose/foundation/text/TextDelegate;)V", "untransformedText", "Landroidx/compose/ui/text/AnnotatedString;", "getUntransformedText", "()Landroidx/compose/ui/text/AnnotatedString;", "setUntransformedText", "(Landroidx/compose/ui/text/AnnotatedString;)V", "update", "visualText", "textStyle", "Landroidx/compose/ui/text/TextStyle;", "softWrap", "density", "Landroidx/compose/ui/unit/Density;", "fontFamilyResolver", "Landroidx/compose/ui/text/font/FontFamily$Resolver;", "keyboardActions", "Landroidx/compose/foundation/text/KeyboardActions;", "focusManager", "Landroidx/compose/ui/focus/FocusManager;", "selectionBackgroundColor", "Landroidx/compose/ui/graphics/Color;", "update-fnh65Uc", "(Landroidx/compose/ui/text/AnnotatedString;Landroidx/compose/ui/text/AnnotatedString;Landroidx/compose/ui/text/TextStyle;ZLandroidx/compose/ui/unit/Density;Landroidx/compose/ui/text/font/FontFamily$Resolver;Lkotlin/jvm/functions/Function1;Landroidx/compose/foundation/text/KeyboardActions;Landroidx/compose/ui/focus/FocusManager;J)V", "foundation_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
|
/* loaded from: classes.dex */
|
|
public final class TextFieldState {
|
|
|
|
/* renamed from: handleState$delegate, reason: from kotlin metadata */
|
|
private final MutableState handleState;
|
|
|
|
/* renamed from: hasFocus$delegate, reason: from kotlin metadata */
|
|
private final MutableState hasFocus;
|
|
private TextInputSession inputSession;
|
|
private boolean isLayoutResultStale;
|
|
private final KeyboardActionRunner keyboardActionRunner;
|
|
private LayoutCoordinates layoutCoordinates;
|
|
private final MutableState<TextLayoutResultProxy> layoutResultState;
|
|
|
|
/* renamed from: minHeightForSingleLineField$delegate, reason: from kotlin metadata */
|
|
private final MutableState minHeightForSingleLineField;
|
|
private final Function1<ImeAction, Unit> onImeActionPerformed;
|
|
private final Function1<TextFieldValue, Unit> onValueChange;
|
|
private Function1<? super TextFieldValue, Unit> onValueChangeOriginal;
|
|
private final EditProcessor processor;
|
|
private final RecomposeScope recomposeScope;
|
|
private final Paint selectionPaint;
|
|
|
|
/* renamed from: showCursorHandle$delegate, reason: from kotlin metadata */
|
|
private final MutableState showCursorHandle;
|
|
private boolean showFloatingToolbar;
|
|
|
|
/* renamed from: showSelectionHandleEnd$delegate, reason: from kotlin metadata */
|
|
private final MutableState showSelectionHandleEnd;
|
|
|
|
/* renamed from: showSelectionHandleStart$delegate, reason: from kotlin metadata */
|
|
private final MutableState showSelectionHandleStart;
|
|
private TextDelegate textDelegate;
|
|
private AnnotatedString untransformedText;
|
|
|
|
public final TextInputSession getInputSession() {
|
|
return this.inputSession;
|
|
}
|
|
|
|
public final LayoutCoordinates getLayoutCoordinates() {
|
|
return this.layoutCoordinates;
|
|
}
|
|
|
|
public final Function1<ImeAction, Unit> getOnImeActionPerformed() {
|
|
return this.onImeActionPerformed;
|
|
}
|
|
|
|
public final Function1<TextFieldValue, Unit> getOnValueChange() {
|
|
return this.onValueChange;
|
|
}
|
|
|
|
public final EditProcessor getProcessor() {
|
|
return this.processor;
|
|
}
|
|
|
|
public final RecomposeScope getRecomposeScope() {
|
|
return this.recomposeScope;
|
|
}
|
|
|
|
public final Paint getSelectionPaint() {
|
|
return this.selectionPaint;
|
|
}
|
|
|
|
public final boolean getShowFloatingToolbar() {
|
|
return this.showFloatingToolbar;
|
|
}
|
|
|
|
public final TextDelegate getTextDelegate() {
|
|
return this.textDelegate;
|
|
}
|
|
|
|
public final AnnotatedString getUntransformedText() {
|
|
return this.untransformedText;
|
|
}
|
|
|
|
/* renamed from: isLayoutResultStale, reason: from getter */
|
|
public final boolean getIsLayoutResultStale() {
|
|
return this.isLayoutResultStale;
|
|
}
|
|
|
|
public final void setInputSession(TextInputSession textInputSession) {
|
|
this.inputSession = textInputSession;
|
|
}
|
|
|
|
public final void setLayoutCoordinates(LayoutCoordinates layoutCoordinates) {
|
|
this.layoutCoordinates = layoutCoordinates;
|
|
}
|
|
|
|
public final void setShowFloatingToolbar(boolean z) {
|
|
this.showFloatingToolbar = z;
|
|
}
|
|
|
|
public final void setTextDelegate(TextDelegate textDelegate) {
|
|
Intrinsics.checkNotNullParameter(textDelegate, "<set-?>");
|
|
this.textDelegate = textDelegate;
|
|
}
|
|
|
|
public final void setUntransformedText(AnnotatedString annotatedString) {
|
|
this.untransformedText = annotatedString;
|
|
}
|
|
|
|
public TextFieldState(TextDelegate textDelegate, RecomposeScope recomposeScope) {
|
|
MutableState mutableStateOf$default;
|
|
MutableState mutableStateOf$default2;
|
|
MutableState<TextLayoutResultProxy> mutableStateOf$default3;
|
|
MutableState mutableStateOf$default4;
|
|
MutableState mutableStateOf$default5;
|
|
MutableState mutableStateOf$default6;
|
|
MutableState mutableStateOf$default7;
|
|
Intrinsics.checkNotNullParameter(textDelegate, "textDelegate");
|
|
Intrinsics.checkNotNullParameter(recomposeScope, "recomposeScope");
|
|
this.textDelegate = textDelegate;
|
|
this.recomposeScope = recomposeScope;
|
|
this.processor = new EditProcessor();
|
|
mutableStateOf$default = SnapshotStateKt__SnapshotStateKt.mutableStateOf$default(false, null, 2, null);
|
|
this.hasFocus = mutableStateOf$default;
|
|
mutableStateOf$default2 = SnapshotStateKt__SnapshotStateKt.mutableStateOf$default(Dp.m4881boximpl(Dp.m4883constructorimpl(0)), null, 2, null);
|
|
this.minHeightForSingleLineField = mutableStateOf$default2;
|
|
mutableStateOf$default3 = SnapshotStateKt__SnapshotStateKt.mutableStateOf$default(null, null, 2, null);
|
|
this.layoutResultState = mutableStateOf$default3;
|
|
mutableStateOf$default4 = SnapshotStateKt__SnapshotStateKt.mutableStateOf$default(HandleState.None, null, 2, null);
|
|
this.handleState = mutableStateOf$default4;
|
|
mutableStateOf$default5 = SnapshotStateKt__SnapshotStateKt.mutableStateOf$default(false, null, 2, null);
|
|
this.showSelectionHandleStart = mutableStateOf$default5;
|
|
mutableStateOf$default6 = SnapshotStateKt__SnapshotStateKt.mutableStateOf$default(false, null, 2, null);
|
|
this.showSelectionHandleEnd = mutableStateOf$default6;
|
|
mutableStateOf$default7 = SnapshotStateKt__SnapshotStateKt.mutableStateOf$default(false, null, 2, null);
|
|
this.showCursorHandle = mutableStateOf$default7;
|
|
this.isLayoutResultStale = true;
|
|
this.keyboardActionRunner = new KeyboardActionRunner();
|
|
this.onValueChangeOriginal = new Function1<TextFieldValue, Unit>() { // from class: androidx.compose.foundation.text.TextFieldState$onValueChangeOriginal$1
|
|
/* renamed from: invoke, reason: avoid collision after fix types in other method */
|
|
public final void invoke2(TextFieldValue it) {
|
|
Intrinsics.checkNotNullParameter(it, "it");
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function1
|
|
public /* bridge */ /* synthetic */ Unit invoke(TextFieldValue textFieldValue) {
|
|
invoke2(textFieldValue);
|
|
return Unit.INSTANCE;
|
|
}
|
|
};
|
|
this.onValueChange = new Function1<TextFieldValue, Unit>() { // from class: androidx.compose.foundation.text.TextFieldState$onValueChange$1
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
{
|
|
super(1);
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function1
|
|
public /* bridge */ /* synthetic */ Unit invoke(TextFieldValue textFieldValue) {
|
|
invoke2(textFieldValue);
|
|
return Unit.INSTANCE;
|
|
}
|
|
|
|
/* renamed from: invoke, reason: avoid collision after fix types in other method */
|
|
public final void invoke2(TextFieldValue it) {
|
|
Function1 function1;
|
|
Intrinsics.checkNotNullParameter(it, "it");
|
|
String text = it.getText();
|
|
AnnotatedString untransformedText = TextFieldState.this.getUntransformedText();
|
|
if (!Intrinsics.areEqual(text, untransformedText != null ? untransformedText.getText() : null)) {
|
|
TextFieldState.this.setHandleState(HandleState.None);
|
|
}
|
|
function1 = TextFieldState.this.onValueChangeOriginal;
|
|
function1.invoke(it);
|
|
TextFieldState.this.getRecomposeScope().invalidate();
|
|
}
|
|
};
|
|
this.onImeActionPerformed = new Function1<ImeAction, Unit>() { // from class: androidx.compose.foundation.text.TextFieldState$onImeActionPerformed$1
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
{
|
|
super(1);
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function1
|
|
public /* bridge */ /* synthetic */ Unit invoke(ImeAction imeAction) {
|
|
m840invokeKlQnJC8(imeAction.getValue());
|
|
return Unit.INSTANCE;
|
|
}
|
|
|
|
/* renamed from: invoke-KlQnJC8, reason: not valid java name */
|
|
public final void m840invokeKlQnJC8(int i) {
|
|
KeyboardActionRunner keyboardActionRunner;
|
|
keyboardActionRunner = TextFieldState.this.keyboardActionRunner;
|
|
keyboardActionRunner.m771runActionKlQnJC8(i);
|
|
}
|
|
};
|
|
this.selectionPaint = AndroidPaint_androidKt.Paint();
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
public final boolean getHasFocus() {
|
|
return ((Boolean) this.hasFocus.getValue()).booleanValue();
|
|
}
|
|
|
|
public final void setHasFocus(boolean z) {
|
|
this.hasFocus.setValue(Boolean.valueOf(z));
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
/* renamed from: getMinHeightForSingleLineField-D9Ej5fM, reason: not valid java name */
|
|
public final float m837getMinHeightForSingleLineFieldD9Ej5fM() {
|
|
return ((Dp) this.minHeightForSingleLineField.getValue()).m4897unboximpl();
|
|
}
|
|
|
|
/* renamed from: setMinHeightForSingleLineField-0680j_4, reason: not valid java name */
|
|
public final void m838setMinHeightForSingleLineField0680j_4(float f) {
|
|
this.minHeightForSingleLineField.setValue(Dp.m4881boximpl(f));
|
|
}
|
|
|
|
public final TextLayoutResultProxy getLayoutResult() {
|
|
return this.layoutResultState.getValue();
|
|
}
|
|
|
|
public final void setLayoutResult(TextLayoutResultProxy textLayoutResultProxy) {
|
|
this.layoutResultState.setValue(textLayoutResultProxy);
|
|
this.isLayoutResultStale = false;
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
public final HandleState getHandleState() {
|
|
return (HandleState) this.handleState.getValue();
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
public final boolean getShowSelectionHandleStart() {
|
|
return ((Boolean) this.showSelectionHandleStart.getValue()).booleanValue();
|
|
}
|
|
|
|
public final void setShowSelectionHandleStart(boolean z) {
|
|
this.showSelectionHandleStart.setValue(Boolean.valueOf(z));
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
public final boolean getShowSelectionHandleEnd() {
|
|
return ((Boolean) this.showSelectionHandleEnd.getValue()).booleanValue();
|
|
}
|
|
|
|
public final void setShowSelectionHandleEnd(boolean z) {
|
|
this.showSelectionHandleEnd.setValue(Boolean.valueOf(z));
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
public final boolean getShowCursorHandle() {
|
|
return ((Boolean) this.showCursorHandle.getValue()).booleanValue();
|
|
}
|
|
|
|
public final void setShowCursorHandle(boolean z) {
|
|
this.showCursorHandle.setValue(Boolean.valueOf(z));
|
|
}
|
|
|
|
/* renamed from: update-fnh65Uc, reason: not valid java name */
|
|
public final void m839updatefnh65Uc(AnnotatedString untransformedText, AnnotatedString visualText, TextStyle textStyle, boolean softWrap, Density density, FontFamily.Resolver fontFamilyResolver, Function1<? super TextFieldValue, Unit> onValueChange, KeyboardActions keyboardActions, FocusManager focusManager, long selectionBackgroundColor) {
|
|
TextDelegate m809updateTextDelegaterm0N8CA;
|
|
Intrinsics.checkNotNullParameter(untransformedText, "untransformedText");
|
|
Intrinsics.checkNotNullParameter(visualText, "visualText");
|
|
Intrinsics.checkNotNullParameter(textStyle, "textStyle");
|
|
Intrinsics.checkNotNullParameter(density, "density");
|
|
Intrinsics.checkNotNullParameter(fontFamilyResolver, "fontFamilyResolver");
|
|
Intrinsics.checkNotNullParameter(onValueChange, "onValueChange");
|
|
Intrinsics.checkNotNullParameter(keyboardActions, "keyboardActions");
|
|
Intrinsics.checkNotNullParameter(focusManager, "focusManager");
|
|
this.onValueChangeOriginal = onValueChange;
|
|
this.selectionPaint.mo2520setColor8_81llA(selectionBackgroundColor);
|
|
KeyboardActionRunner keyboardActionRunner = this.keyboardActionRunner;
|
|
keyboardActionRunner.setKeyboardActions(keyboardActions);
|
|
keyboardActionRunner.setFocusManager(focusManager);
|
|
keyboardActionRunner.setInputSession(this.inputSession);
|
|
this.untransformedText = untransformedText;
|
|
m809updateTextDelegaterm0N8CA = TextDelegateKt.m809updateTextDelegaterm0N8CA(this.textDelegate, visualText, textStyle, density, fontFamilyResolver, (r23 & 32) != 0 ? true : softWrap, (r23 & 64) != 0 ? TextOverflow.INSTANCE.m4824getClipgIe3tQ8() : 0, (r23 & 128) != 0 ? Integer.MAX_VALUE : 0, (r23 & 256) != 0 ? 1 : 0, CollectionsKt.emptyList());
|
|
if (this.textDelegate != m809updateTextDelegaterm0N8CA) {
|
|
this.isLayoutResultStale = true;
|
|
}
|
|
this.textDelegate = m809updateTextDelegaterm0N8CA;
|
|
}
|
|
|
|
public final void setHandleState(HandleState handleState) {
|
|
Intrinsics.checkNotNullParameter(handleState, "<set-?>");
|
|
this.handleState.setValue(handleState);
|
|
}
|
|
}
|