mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Merge "Set view properties for Key node infos."
This commit is contained in:
commit
0cedde120b
@ -95,6 +95,7 @@ public class AccessibilityEntityProvider extends AccessibilityNodeProviderCompat
|
|||||||
event.setPackageName(mKeyboardView.getContext().getPackageName());
|
event.setPackageName(mKeyboardView.getContext().getPackageName());
|
||||||
event.setClassName(key.getClass().getName());
|
event.setClassName(key.getClass().getName());
|
||||||
event.getText().add(keyDescription);
|
event.getText().add(keyDescription);
|
||||||
|
event.setEnabled(true);
|
||||||
|
|
||||||
final AccessibilityRecordCompat record = new AccessibilityRecordCompat(event);
|
final AccessibilityRecordCompat record = new AccessibilityRecordCompat(event);
|
||||||
record.setSource(mKeyboardView, virtualViewId);
|
record.setSource(mKeyboardView, virtualViewId);
|
||||||
@ -171,6 +172,9 @@ public class AccessibilityEntityProvider extends AccessibilityNodeProviderCompat
|
|||||||
info.setSource(mKeyboardView, virtualViewId);
|
info.setSource(mKeyboardView, virtualViewId);
|
||||||
info.setBoundsInScreen(boundsInScreen);
|
info.setBoundsInScreen(boundsInScreen);
|
||||||
info.setText(keyDescription);
|
info.setText(keyDescription);
|
||||||
|
info.setClickable(true);
|
||||||
|
info.setEnabled(true);
|
||||||
|
info.setLongClickable(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
return info;
|
return info;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user