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