File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
lib/java/com/google/android/material/navigationrail Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 26
26
import static java .lang .Math .min ;
27
27
28
28
import android .animation .TimeInterpolator ;
29
+ import android .annotation .SuppressLint ;
29
30
import android .content .Context ;
30
31
import androidx .appcompat .widget .TintTypedArray ;
31
32
import android .util .AttributeSet ;
32
33
import android .view .Gravity ;
33
34
import android .view .LayoutInflater ;
35
+ import android .view .MotionEvent ;
34
36
import android .view .View ;
35
37
import android .view .ViewGroup ;
36
38
import android .view .animation .PathInterpolator ;
@@ -713,4 +715,12 @@ private void addContentContainer() {
713
715
public boolean shouldAddMenuView () {
714
716
return true ;
715
717
}
718
+
719
+ @ SuppressLint ("ClickableViewAccessibility" )
720
+ @ Override
721
+ public boolean onTouchEvent (@ NonNull MotionEvent event ) {
722
+ super .onTouchEvent (event );
723
+ // Consume all events to avoid views under the BottomNavigationView from receiving touch events.
724
+ return true ;
725
+ }
716
726
}
You can’t perform that action at this time.
0 commit comments