Browse Source

Android: Fix accessibility compatibility issues with older devices

v7.0.9
reuk 3 years ago
parent
commit
92a19a9ea2
No known key found for this signature in database GPG Key ID: FCB43929F012EE5C
3 changed files with 774 additions and 757 deletions
  1. +1
    -1
      modules/juce_gui_basics/native/accessibility/juce_android_Accessibility.cpp
  2. +11
    -1
      modules/juce_gui_basics/native/java/app/com/rmsl/juce/ComponentPeerView.java
  3. +762
    -755
      modules/juce_gui_basics/native/juce_android_Windowing.cpp

+ 1
- 1
modules/juce_gui_basics/native/accessibility/juce_android_Accessibility.cpp View File

@@ -59,7 +59,7 @@ namespace juce
METHOD (setCollectionInfo, "setCollectionInfo", "(Landroid/view/accessibility/AccessibilityNodeInfo$CollectionInfo;)V") \
METHOD (setCollectionItemInfo, "setCollectionItemInfo", "(Landroid/view/accessibility/AccessibilityNodeInfo$CollectionItemInfo;)V")
DECLARE_JNI_CLASS (AndroidAccessibilityNodeInfo19, "android/view/accessibility/AccessibilityNodeInfo")
DECLARE_JNI_CLASS_WITH_MIN_SDK (AndroidAccessibilityNodeInfo19, "android/view/accessibility/AccessibilityNodeInfo", 19)
#undef JNI_CLASS_MEMBERS
#define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK) \


+ 11
- 1
modules/juce_gui_basics/native/java/app/com/rmsl/juce/ComponentPeerView.java View File

@@ -712,7 +712,17 @@ public final class ComponentPeerView extends ViewGroup
cached = null;
target = null;
super.closeConnection();
if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.N)
{
super.closeConnection();
}
else
{
finishComposingText();
if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.S)
setImeConsumesInput (false);
}
}
private ComponentPeerView view;


+ 762
- 755
modules/juce_gui_basics/native/juce_android_Windowing.cpp
File diff suppressed because it is too large
View File


Loading…
Cancel
Save