summaryrefslogtreecommitdiffstats
path: root/res/menu
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2009-08-12 11:28:53 -0700
committerJeff Sharkey <jsharkey@android.com>2009-08-18 16:21:04 -0700
commit3f0b7b87cd41b5a9cd631b6fcf29ea5025905e18 (patch)
tree8e03c2738f891313a26ffd64762509e085ffa492 /res/menu
parent88cf9e84ff1c355bba8c27462c8b2325d74fb714 (diff)
downloadpackages_apps_Contacts-3f0b7b87cd41b5a9cd631b6fcf29ea5025905e18.tar.gz
packages_apps_Contacts-3f0b7b87cd41b5a9cd631b6fcf29ea5025905e18.tar.bz2
packages_apps_Contacts-3f0b7b87cd41b5a9cd631b6fcf29ea5025905e18.zip
Use AccountManager for details, handle INSERT cases.
Connected Sources to use AccountManager and inflate details through registered sync adapters. Each ContactsSource now has a "level" of inflation, since deeper levels aren't always needed right away. Several places we're making blocking calls into other processes that are tied to the UI thread. (This would take a large effort to fix.) Turned most background Edit activity operations into WeakAsyncTask, which helps finish background tasks while preventing leaked Contexts. This allows us to hold the UI thread while saving, but release it just before ANR, allowing the background operation to complete. Enabled INSERT case, both from overall list and when already editing an aggregate. Finally, cleaned up the manifest intent-filters to directly match authorities.
Diffstat (limited to 'res/menu')
-rw-r--r--res/menu/edit.xml5
1 files changed, 5 insertions, 0 deletions
diff --git a/res/menu/edit.xml b/res/menu/edit.xml
index b38aab18f..3a24f27f1 100644
--- a/res/menu/edit.xml
+++ b/res/menu/edit.xml
@@ -28,6 +28,11 @@
android:title="@string/menu_doNotSave" />
<item
+ android:id="@+id/menu_add"
+ android:icon="@android:drawable/ic_menu_add"
+ android:title="@string/menu_newContact" />
+
+ <item
android:id="@+id/menu_delete"
android:icon="@android:drawable/ic_menu_delete"
android:title="@string/menu_deleteContact" />