mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Merge "Remove compiler warning from accessibility package"
This commit is contained in:
commit
ced6788518
@ -114,7 +114,7 @@ public final class AccessibilityUtils {
|
|||||||
* @param event The event to check.
|
* @param event The event to check.
|
||||||
* @return {@true} is the event is a touch exploration event
|
* @return {@true} is the event is a touch exploration event
|
||||||
*/
|
*/
|
||||||
public boolean isTouchExplorationEvent(final MotionEvent event) {
|
public static boolean isTouchExplorationEvent(final MotionEvent event) {
|
||||||
final int action = event.getAction();
|
final int action = event.getAction();
|
||||||
return action == MotionEvent.ACTION_HOVER_ENTER
|
return action == MotionEvent.ACTION_HOVER_ENTER
|
||||||
|| action == MotionEvent.ACTION_HOVER_EXIT
|
|| action == MotionEvent.ACTION_HOVER_EXIT
|
||||||
|
@ -134,7 +134,7 @@ public final class KeyboardAccessibilityNodeProvider extends AccessibilityNodePr
|
|||||||
event.setClassName(key.getClass().getName());
|
event.setClassName(key.getClass().getName());
|
||||||
event.setContentDescription(keyDescription);
|
event.setContentDescription(keyDescription);
|
||||||
event.setEnabled(true);
|
event.setEnabled(true);
|
||||||
final AccessibilityRecordCompat record = new AccessibilityRecordCompat(event);
|
final AccessibilityRecordCompat record = AccessibilityEventCompat.asRecord(event);
|
||||||
record.setSource(mKeyboardView, virtualViewId);
|
record.setSource(mKeyboardView, virtualViewId);
|
||||||
return event;
|
return event;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user