fixed #454 - added fast srcolling to some lists

This commit is contained in:
iNPUTmice 2014-09-21 00:45:07 +02:00
parent 34de697e7e
commit cca5865ecb
2 changed files with 2 additions and 0 deletions

View File

@ -82,6 +82,7 @@ public class ChooseContactActivity extends XmppActivity {
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
setContentView(R.layout.activity_choose_contact); setContentView(R.layout.activity_choose_contact);
mListView = (ListView) findViewById(R.id.choose_contact_list); mListView = (ListView) findViewById(R.id.choose_contact_list);
mListView.setFastScrollEnabled(true);
mContactsAdapter = new ListItemAdapter(this, contacts); mContactsAdapter = new ListItemAdapter(this, contacts);
mListView.setAdapter(mContactsAdapter); mListView.setAdapter(mContactsAdapter);
mListView.setOnItemClickListener(new AdapterView.OnItemClickListener() { mListView.setOnItemClickListener(new AdapterView.OnItemClickListener() {

View File

@ -568,6 +568,7 @@ public class StartConversationActivity extends XmppActivity {
public void onViewCreated(View view, Bundle savedInstanceState) { public void onViewCreated(View view, Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState); super.onViewCreated(view, savedInstanceState);
registerForContextMenu(getListView()); registerForContextMenu(getListView());
getListView().setFastScrollEnabled(true);
} }
@Override @Override