From 575ae388961252a771488c357e425fca191594b2 Mon Sep 17 00:00:00 2001 From: Yorke Lee Date: Thu, 16 Jul 2015 11:36:07 -0700 Subject: Add permission prompts for contacts and dialpad search Update the following fragments to handle denied permissions -Contacts Search (Contacts and Location) -Dialpad Search (Phone) Tweak and remove some of the onTouch listener logic as they are no longer valid with the new UI. Instead of intercepting the touches when the query is empty and returning to the main dialer activity, allow the fragments to remain on screen if the permission request UI is showing. Modify signature of onEmptyViewActionButtonClicked to remove unused permissions parameter. Bug: 22174668 Change-Id: I96d00f2ab45df936dca602ac025f723638ac02c4 --- res/layout/empty_content_view.xml | 1 - res/values/strings.xml | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'res') diff --git a/res/layout/empty_content_view.xml b/res/layout/empty_content_view.xml index d8f27aad8..97ac4c79c 100644 --- a/res/layout/empty_content_view.xml +++ b/res/layout/empty_content_view.xml @@ -43,7 +43,6 @@ android:paddingLeft="16dp" android:paddingTop="8dp" android:paddingBottom="8dp" - android:text="@string/permission_single_turn_on" android:background="?android:attr/selectableItemBackground" android:clickable="true" style="@style/TextActionStyle" /> diff --git a/res/values/strings.xml b/res/values/strings.xml index 505e49169..f07eb62ac 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -808,8 +808,8 @@ To access your voicemail,\n turn on the Phone permission. - - To search your contacts and nearby locations, turn on the Contacts and Location permissions. + + To search your contacts, turn on the Contacts permissions. To place a call,\n turn on the Phone permission. -- cgit v1.2.3