Revert all the fast scroll always enabled changes
This commit is contained in:
parent
2b4147ed9f
commit
a46b8e8663
@ -7,8 +7,8 @@
|
||||
android:paddingBottom="4dp"
|
||||
android:paddingLeft="6dp"
|
||||
android:paddingStart="6dp"
|
||||
android:paddingRight="4dp"
|
||||
android:paddingEnd="4dp">
|
||||
android:paddingRight="10dp"
|
||||
android:paddingEnd="10dp">
|
||||
|
||||
<ImageView android:id="@+id/icon"
|
||||
android:scaleType="fitCenter"
|
||||
@ -85,7 +85,7 @@
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/icon"
|
||||
android:paddingLeft="4dp"
|
||||
android:paddingStart="4dp"/>
|
||||
android:paddingLeft="6dp"
|
||||
android:paddingStart="6dp"/>
|
||||
|
||||
</RelativeLayout>
|
||||
|
@ -131,12 +131,7 @@ public class SearchResults extends ListActivity {
|
||||
for (DB.App app : apps) {
|
||||
applist.addItem(app);
|
||||
}
|
||||
if (Utils.hasApi(11)) {
|
||||
getListView().setFastScrollAlwaysVisible(true);
|
||||
getListView().setScrollBarStyle(View.SCROLLBARS_INSIDE_INSET);
|
||||
} else {
|
||||
getListView().setFastScrollEnabled(true);
|
||||
}
|
||||
getListView().setFastScrollEnabled(true);
|
||||
applist.notifyDataSetChanged();
|
||||
setListAdapter(applist);
|
||||
|
||||
|
@ -49,12 +49,7 @@ abstract class AppListFragment extends Fragment implements AdapterView.OnItemCli
|
||||
|
||||
protected ListView createAppListView() {
|
||||
ListView list = new ListView(getActivity());
|
||||
if (Utils.hasApi(11)) {
|
||||
list.setFastScrollAlwaysVisible(true);
|
||||
list.setScrollBarStyle(View.SCROLLBARS_INSIDE_INSET);
|
||||
} else {
|
||||
list.setFastScrollEnabled(true);
|
||||
}
|
||||
list.setFastScrollEnabled(true);
|
||||
list.setOnItemClickListener(this);
|
||||
list.setAdapter(getAppListAdapter());
|
||||
return list;
|
||||
|
Loading…
x
Reference in New Issue
Block a user