Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8aa7f03a authored by arangelov's avatar arangelov
Browse files

Enable ViewPager swiping for intent resolver.

Fixes: 149730561
Test: manual
Change-Id: I8652177e6dcd78a7e4b2f713e6f0a020bf30c63e
parent dc77c5e1
Loading
Loading
Loading
Loading
+2 −12
Original line number Diff line number Diff line
@@ -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 {

@@ -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;
    }
}
+1 −1
Original line number Diff line number Diff line
@@ -82,7 +82,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"/>