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

Commit bad927a9 authored by Android (Google) Code Review's avatar Android (Google) Code Review
Browse files

Merge change 3480 into donut

* changes:
  Do not automatically enable gestures in list based on filtering/fastscroll status. Enable gestures in Contacts for now.
parents 410ea662 0a20264d
Loading
Loading
Loading
Loading
+1 −7
Original line number Diff line number Diff line
@@ -583,13 +583,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
        boolean smoothScrollbar = a.getBoolean(R.styleable.AbsListView_smoothScrollbar, true);
        setSmoothScrollbarEnabled(smoothScrollbar);

        int defaultGestures = GESTURES_NONE;
        if (useTextFilter) {
            defaultGestures = GESTURES_FILTER;
        } else if (enableFastScroll) {
            defaultGestures = GESTURES_JUMP;
        }
        int gestures = a.getInt(R.styleable.AbsListView_gestures, defaultGestures);
        int gestures = a.getInt(R.styleable.AbsListView_gestures, GESTURES_NONE);
        setGestures(gestures);

        a.recycle();
+184 −187
Original line number Diff line number Diff line
@@ -1386,12 +1386,9 @@
            <!-- No gesture -->
            <enum name="none" value="0" />
            <!-- Gestures jump to a specific position in the content. This requires
                  fast scroll to be enabled. If fast scroll is enabled from XML,
                  jump gestures will be enabled automatically. -->
                  fast scroll to be enabled. -->
            <enum name="jump" value="1" />
            <!-- Gestures filter the content. This requires text filtering to be enabled.
                 If text filtering is enabled from XML, filter gestures will be enabled
                 automatically. -->
            <!-- Gestures filter the content. This requires text filtering to be enabled. -->
            <enum name="filter" value="2" />
        </attr>
    </declare-styleable>