Loading core/java/com/android/internal/app/ResolverViewPager.java +2 −12 Original line number Diff line number Diff line Loading @@ -24,10 +24,10 @@ import android.view.View; import com.android.internal.widget.ViewPager; /** * A {@link ViewPager} which wraps around its first child's height and has swiping disabled. * A {@link ViewPager} which wraps around its first child's height. * <p>Normally {@link ViewPager} instances expand their height to cover all remaining space in * the layout. * <p>This class is used for the intent resolver and share sheet's tabbed view. * <p>This class is used for the intent resolver's tabbed view. */ public class ResolverViewPager extends ViewPager { Loading Loading @@ -70,14 +70,4 @@ public class ResolverViewPager extends ViewPager { heightMeasureSpec = MeasureSpec.makeMeasureSpec(height, MeasureSpec.EXACTLY); super.onMeasure(widthMeasureSpec, heightMeasureSpec); } @Override public boolean onTouchEvent(MotionEvent ev) { return false; } @Override public boolean onInterceptTouchEvent(MotionEvent ev) { return false; } } core/res/res/layout/chooser_grid.xml +1 −1 Original line number Diff line number Diff line Loading @@ -90,7 +90,7 @@ android:id="@android:id/tabcontent" android:layout_width="match_parent" android:layout_height="wrap_content"> <com.android.internal.app.ResolverViewPager <com.android.internal.widget.ViewPager android:id="@+id/profile_pager" android:layout_width="match_parent" android:layout_height="wrap_content"/> Loading Loading
core/java/com/android/internal/app/ResolverViewPager.java +2 −12 Original line number Diff line number Diff line Loading @@ -24,10 +24,10 @@ import android.view.View; import com.android.internal.widget.ViewPager; /** * A {@link ViewPager} which wraps around its first child's height and has swiping disabled. * A {@link ViewPager} which wraps around its first child's height. * <p>Normally {@link ViewPager} instances expand their height to cover all remaining space in * the layout. * <p>This class is used for the intent resolver and share sheet's tabbed view. * <p>This class is used for the intent resolver's tabbed view. */ public class ResolverViewPager extends ViewPager { Loading Loading @@ -70,14 +70,4 @@ public class ResolverViewPager extends ViewPager { heightMeasureSpec = MeasureSpec.makeMeasureSpec(height, MeasureSpec.EXACTLY); super.onMeasure(widthMeasureSpec, heightMeasureSpec); } @Override public boolean onTouchEvent(MotionEvent ev) { return false; } @Override public boolean onInterceptTouchEvent(MotionEvent ev) { return false; } }
core/res/res/layout/chooser_grid.xml +1 −1 Original line number Diff line number Diff line Loading @@ -90,7 +90,7 @@ android:id="@android:id/tabcontent" android:layout_width="match_parent" android:layout_height="wrap_content"> <com.android.internal.app.ResolverViewPager <com.android.internal.widget.ViewPager android:id="@+id/profile_pager" android:layout_width="match_parent" android:layout_height="wrap_content"/> Loading