am 37f81cd6: Merge "Always use AccessibilityUtils to send events." into jb-dev
* commit '37f81cd6e9a10fbdb3a1a054c88a6b5d98fb0f88': Always use AccessibilityUtils to send events.main
commit
04046b7742
|
@ -29,7 +29,6 @@ import android.util.Log;
|
||||||
import android.util.SparseArray;
|
import android.util.SparseArray;
|
||||||
import android.view.MotionEvent;
|
import android.view.MotionEvent;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.view.ViewParent;
|
|
||||||
import android.view.ViewTreeObserver.OnGlobalLayoutListener;
|
import android.view.ViewTreeObserver.OnGlobalLayoutListener;
|
||||||
import android.view.accessibility.AccessibilityEvent;
|
import android.view.accessibility.AccessibilityEvent;
|
||||||
import android.view.inputmethod.EditorInfo;
|
import android.view.inputmethod.EditorInfo;
|
||||||
|
@ -276,18 +275,7 @@ public class AccessibilityEntityProvider extends AccessibilityNodeProviderCompat
|
||||||
*/
|
*/
|
||||||
void sendAccessibilityEventForKey(Key key, int eventType) {
|
void sendAccessibilityEventForKey(Key key, int eventType) {
|
||||||
final AccessibilityEvent event = createAccessibilityEvent(key, eventType);
|
final AccessibilityEvent event = createAccessibilityEvent(key, eventType);
|
||||||
final ViewParent parent = mKeyboardView.getParent();
|
mAccessibilityUtils.requestSendAccessibilityEvent(event);
|
||||||
|
|
||||||
if (parent == null) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!parent.requestSendAccessibilityEvent(mKeyboardView, event)) {
|
|
||||||
// TODO: Remove this line after the top-level view for the IME
|
|
||||||
// window is fixed to be non-null and requestSendAccessibilityEvent
|
|
||||||
// can return true.
|
|
||||||
mAccessibilityUtils.requestSendAccessibilityEvent(event);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue