Commit e1705713 authored by Sébastien Toque's avatar Sébastien Toque

AudioBrowser: prevent the user to scroll the header

parent 471bb1b2
......@@ -51,8 +51,10 @@ import android.view.ContextMenu.ContextMenuInfo;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuItem;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnCreateContextMenuListener;
import android.view.View.OnTouchListener;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.AdapterView.AdapterContextMenuInfo;
......@@ -126,6 +128,13 @@ public class AudioBrowserFragment extends SherlockFragment implements ISortable
mHeader = (HorizontalScrollView)v.findViewById(;
mHeader.setOnTouchListener(new OnTouchListener() {
public boolean onTouch(View v, MotionEvent e) {
// prevent the user to scroll the header
return true;
ListView songsList = (ListView)v.findViewById(;
ExpandableListView artistList = (ExpandableListView)v.findViewById(;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment