47 lines
1.8 KiB
Java
47 lines
1.8 KiB
Java
package com.tencent.open.web.security;
|
|
|
|
import android.view.KeyEvent;
|
|
import android.view.inputmethod.InputConnection;
|
|
import android.view.inputmethod.InputConnectionWrapper;
|
|
import com.tencent.open.a.f;
|
|
|
|
/* compiled from: ProGuard */
|
|
/* loaded from: classes.dex */
|
|
public class a extends InputConnectionWrapper {
|
|
public static String a = null;
|
|
public static boolean b = false;
|
|
public static boolean c = false;
|
|
|
|
public a(InputConnection inputConnection, boolean z) {
|
|
super(inputConnection, z);
|
|
}
|
|
|
|
@Override // android.view.inputmethod.InputConnectionWrapper, android.view.inputmethod.InputConnection
|
|
public boolean commitText(CharSequence charSequence, int i) {
|
|
c = true;
|
|
a = charSequence.toString();
|
|
f.a("openSDK_LOG.CaptureInputConnection", "-->commitText: " + charSequence.toString());
|
|
return super.commitText(charSequence, i);
|
|
}
|
|
|
|
@Override // android.view.inputmethod.InputConnectionWrapper, android.view.inputmethod.InputConnection
|
|
public boolean sendKeyEvent(KeyEvent keyEvent) {
|
|
if (keyEvent.getAction() == 0) {
|
|
f.c("openSDK_LOG.CaptureInputConnection", "sendKeyEvent");
|
|
a = String.valueOf((char) keyEvent.getUnicodeChar());
|
|
c = true;
|
|
f.b("openSDK_LOG.CaptureInputConnection", "s: " + a);
|
|
}
|
|
f.b("openSDK_LOG.CaptureInputConnection", "-->sendKeyEvent: " + a);
|
|
return super.sendKeyEvent(keyEvent);
|
|
}
|
|
|
|
@Override // android.view.inputmethod.InputConnectionWrapper, android.view.inputmethod.InputConnection
|
|
public boolean setComposingText(CharSequence charSequence, int i) {
|
|
c = true;
|
|
a = charSequence.toString();
|
|
f.a("openSDK_LOG.CaptureInputConnection", "-->setComposingText: " + charSequence.toString());
|
|
return super.setComposingText(charSequence, i);
|
|
}
|
|
}
|