Commit d5d31d71 authored by Grigory Fedorov's avatar Grigory Fedorov

Contact list navigation drawer "XMPP accounts" made clickable and lead to...

Contact list navigation drawer "XMPP accounts" made clickable and lead to "XMPP accounts" preferences screen.
parent e20df6b3
......@@ -66,6 +66,7 @@ import com.xabber.android.ui.helper.BarPainter;
import com.xabber.android.ui.helper.ManagedActivity;
import com.xabber.android.ui.preferences.AboutViewer;
import com.xabber.android.ui.preferences.AccountEditor;
import com.xabber.android.ui.preferences.AccountList;
import com.xabber.android.ui.preferences.PreferenceEditor;
import com.xabber.xmpp.address.Jid;
import com.xabber.xmpp.uri.XMPPUri;
......@@ -593,7 +594,9 @@ public class ContactList extends ManagedActivity implements OnAccountChangedList
case R.id.drawer_action_exit:
exit();
break;
case R.id.drawer_header_action_xmpp_accounts:
startActivity(AccountList.createIntent(this));
break;
}
}
......
......@@ -52,8 +52,8 @@ public class ContactListDrawerFragment extends Fragment implements View.OnClickL
View headerView = ((LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE))
.inflate(R.layout.contact_list_drawer_header, listView, false);
headerTitle = headerView.findViewById(R.id.drawer_header_title);
headerTitle = headerView.findViewById(R.id.drawer_header_action_xmpp_accounts);
headerTitle.setOnClickListener(this);
listView.addHeaderView(headerView);
......
......@@ -4,8 +4,8 @@
android:layout_height="wrap_content">
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/drawer_header_title"
android:layout_width="wrap_content"
android:id="@+id/drawer_header_action_xmpp_accounts"
android:layout_width="match_parent"
android:layout_height="48dp"
android:gravity="center_vertical"
android:paddingLeft="16dp"
......
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