package X6FRs_4.KQgRr5e_0.LGe8pk_15;

import android.view.View;
import android.view.ViewParent;
import android.view.inputmethod.EditorInfo;
import android.view.inputmethod.InputConnection;
/* compiled from: AppCompatHintHelper.java */
/* loaded from: classes.dex */
public class IMuAHx_6 {
    public static InputConnection KQgRr5e_0(InputConnection inputConnection, EditorInfo editorInfo, View view) {
        if (inputConnection != null && editorInfo.hintText == null) {
            ViewParent parent = view.getParent();
            while (true) {
                if (!(parent instanceof View)) {
                    break;
                } else if (parent instanceof Fv6VRig_36) {
                    editorInfo.hintText = ((Fv6VRig_36) parent).KQgRr5e_0();
                    break;
                } else {
                    parent = parent.getParent();
                }
            }
        }
        return inputConnection;
    }
}
