mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
30 lines
1,003 B
Java
30 lines
1,003 B
Java
package androidx.appcompat.widget;
|
|
|
|
import android.view.View;
|
|
import android.view.ViewParent;
|
|
import android.view.inputmethod.EditorInfo;
|
|
import android.view.inputmethod.InputConnection;
|
|
|
|
/* loaded from: classes.dex */
|
|
class AppCompatHintHelper {
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public static InputConnection onCreateInputConnection(InputConnection inputConnection, EditorInfo editorInfo, View view) {
|
|
if (inputConnection != null && editorInfo.hintText == null) {
|
|
ViewParent parent = view.getParent();
|
|
while (true) {
|
|
if (!(parent instanceof View)) {
|
|
break;
|
|
}
|
|
if (parent instanceof WithHint) {
|
|
editorInfo.hintText = ((WithHint) parent).getHint();
|
|
break;
|
|
}
|
|
parent = parent.getParent();
|
|
}
|
|
}
|
|
return inputConnection;
|
|
}
|
|
|
|
private AppCompatHintHelper() {
|
|
}
|
|
}
|