Browse Source

Find textual buttons in TitleBar by text instead of content description

Guy Carmeli 7 years ago
parent
commit
6a78a3282d

+ 1
- 1
android/app/src/main/java/com/reactnativenavigation/views/TitleBarButton.java View File

@@ -114,7 +114,7 @@ class TitleBarButton implements MenuItem.OnMenuItemClickListener {
114 114
     @NonNull
115 115
     private ArrayList<View> findActualTextViewInMenuByLabel() {
116 116
         ArrayList<View> outViews = new ArrayList<>();
117
-        parent.findViewsWithText(outViews, buttonParams.label, View.FIND_VIEWS_WITH_CONTENT_DESCRIPTION);
117
+        parent.findViewsWithText(outViews, buttonParams.label, View.FIND_VIEWS_WITH_TEXT);
118 118
         return outViews;
119 119
     }
120 120