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 2626import static java .lang .Math .min ;
2727
2828import android .animation .TimeInterpolator ;
29+ import android .annotation .SuppressLint ;
2930import android .content .Context ;
3031import androidx .appcompat .widget .TintTypedArray ;
3132import android .util .AttributeSet ;
3233import android .view .Gravity ;
3334import android .view .LayoutInflater ;
35+ import android .view .MotionEvent ;
3436import android .view .View ;
3537import android .view .ViewGroup ;
3638import android .view .animation .PathInterpolator ;
@@ -713,4 +715,12 @@ private void addContentContainer() {
713715 public boolean shouldAddMenuView () {
714716 return true ;
715717 }
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+ }
716726}
You can’t perform that action at this time.
0 commit comments