Browse Source

Remove setContentDescription calls (#3984) (#5196)

Awn 5 years ago
parent
commit
7438904cbc

+ 0
- 1
lib/android/app/src/main/java/com/reactnativenavigation/views/BottomTabs.java View File

@@ -27,7 +27,6 @@ public class BottomTabs extends AHBottomNavigation {
27 27
     public BottomTabs(Context context) {
28 28
         super(context);
29 29
         setId(CompatUtils.generateViewId());
30
-        setContentDescription("BottomTabs");
31 30
     }
32 31
 
33 32
     @Override

+ 0
- 1
lib/android/app/src/main/java/com/reactnativenavigation/views/ComponentLayout.java View File

@@ -31,7 +31,6 @@ public class ComponentLayout extends FrameLayout implements ReactComponent, Titl
31 31
 		super(context);
32 32
 		this.reactView = reactView;
33 33
         addView(reactView.asView(), MATCH_PARENT, MATCH_PARENT);
34
-        setContentDescription("ComponentLayout");
35 34
         touchDelegate = new OverlayTouchDelegate(reactView);
36 35
     }
37 36
 

+ 0
- 1
lib/android/app/src/main/java/com/reactnativenavigation/views/ExternalComponentLayout.java View File

@@ -13,7 +13,6 @@ import static android.widget.RelativeLayout.BELOW;
13 13
 public class ExternalComponentLayout extends FrameLayout implements Component {
14 14
     public ExternalComponentLayout(Context context) {
15 15
 		super(context);
16
-        setContentDescription("ExternalComponentLayout");
17 16
     }
18 17
 
19 18
     @Override

+ 0
- 1
lib/android/app/src/main/java/com/reactnativenavigation/views/StackLayout.java View File

@@ -18,7 +18,6 @@ public class StackLayout extends RelativeLayout implements Component {
18 18
         super(context);
19 19
         this.stackId = stackId;
20 20
         createLayout(topBarController);
21
-        setContentDescription("StackLayout");
22 21
     }
23 22
 
24 23
     private void createLayout(TopBarController topBarController) {

+ 0
- 1
lib/android/app/src/main/java/com/reactnativenavigation/views/titlebar/TitleBar.java View File

@@ -40,7 +40,6 @@ public class TitleBar extends Toolbar {
40 40
     public TitleBar(Context context) {
41 41
         super(context);
42 42
         getMenu();
43
-        setContentDescription("titleBar");
44 43
     }
45 44
 
46 45
     @Override

+ 0
- 1
lib/android/app/src/main/java/com/reactnativenavigation/views/topbar/TopBar.java View File

@@ -76,7 +76,6 @@ public class TopBar extends AppBarLayout implements ScrollEventListener.ScrollAw
76 76
         root.addView(content);
77 77
         root.addView(border);
78 78
         addView(root, MATCH_PARENT, WRAP_CONTENT);
79
-        if (BuildConfig.DEBUG) setContentDescription("TopBar");
80 79
     }
81 80
 
82 81
     private LinearLayout createContentLayout() {