Removed add contact menu item.
This commit is contained in:
parent
6042c3fb11
commit
123c56c322
6 changed files with 1 additions and 11 deletions
Binary file not shown.
Before Width: | Height: | Size: 616 B |
Binary file not shown.
Before Width: | Height: | Size: 469 B |
Binary file not shown.
Before Width: | Height: | Size: 798 B |
Binary file not shown.
Before Width: | Height: | Size: 1.1 KiB |
|
@ -1,13 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
<item
|
||||
android:id="@+id/add_contact"
|
||||
android:title="@string/add_contacts"
|
||||
android:icon="@drawable/ic_action_add_person"
|
||||
app:showAsAction="ifRoom" />
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<item
|
||||
android:id="@+id/share_app"
|
||||
|
|
|
@ -83,9 +83,6 @@ class ContactsFragment extends ListFragment with OnClickListener {
|
|||
startActivity(new Intent(getActivity, classOf[AddContactsActivity]))
|
||||
|
||||
override def onOptionsItemSelected(item: MenuItem): Boolean = item.getItemId match {
|
||||
case R.id.add_contact =>
|
||||
startActivity(new Intent(getActivity, classOf[AddContactsActivity]))
|
||||
true
|
||||
case R.id.share_app =>
|
||||
val pm = getActivity.getPackageManager
|
||||
val ai = pm.getInstalledApplications(0).find(_.sourceDir.contains(getActivity.getPackageName))
|
||||
|
|
Reference in a new issue