Commit b52b1cce authored by Grigory Fedorov's avatar Grigory Fedorov

Contact list: toolbar click scrolls list up.

parent 30fbef38
...@@ -118,6 +118,7 @@ public class ContactList extends ManagedActivity implements OnAccountChangedList ...@@ -118,6 +118,7 @@ public class ContactList extends ManagedActivity implements OnAccountChangedList
setContentView(R.layout.contact_list); setContentView(R.layout.contact_list);
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar_default); Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar_default);
toolbar.setLogo(R.drawable.ic_xabber_logo); toolbar.setLogo(R.drawable.ic_xabber_logo);
toolbar.setOnClickListener(this);
setSupportActionBar(toolbar); setSupportActionBar(toolbar);
setTitle(getString(R.string.production_title)); setTitle(getString(R.string.production_title));
...@@ -432,7 +433,7 @@ public class ContactList extends ManagedActivity implements OnAccountChangedList ...@@ -432,7 +433,7 @@ public class ContactList extends ManagedActivity implements OnAccountChangedList
@Override @Override
public void onClick(View view) { public void onClick(View view) {
switch (view.getId()) { switch (view.getId()) {
case android.R.id.title: case R.id.toolbar_default:
getContactListFragment().scrollUp(); getContactListFragment().scrollUp();
break; break;
} }
......
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