diff options
author | Yorke Lee <yorkelee@google.com> | 2015-07-01 14:28:13 -0700 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2015-07-01 15:56:01 -0700 |
commit | 2a613022dbb278f0f7dd94cf49885cde9d36100c (patch) | |
tree | 9cf82f7fff1e5431bb92dadfdbc8e3bfb3be3470 /src/com/android/dialer/CallDetailActivity.java | |
parent | 82d30284d32d2e563661ad0a1465c1b9bf501a9f (diff) |
Restore Dialer content after permissions granted
First pass at making Dialer display the call log, favorites,
all contacts, and contact search after permissions are granted
withut having to restart the app.
Update cached permission status in onResume for Dialer activities
Update SpeedDialFragment to correctly initialize loader in
onResume if it was null previously because of revoked permission.
Bug: 22205650
Change-Id: I68982e69395bc9c7da84ff3221cd12b8f79005f9
Diffstat (limited to 'src/com/android/dialer/CallDetailActivity.java')
-rw-r--r-- | src/com/android/dialer/CallDetailActivity.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/dialer/CallDetailActivity.java b/src/com/android/dialer/CallDetailActivity.java index 734e78f46..ec92f3f94 100644 --- a/src/com/android/dialer/CallDetailActivity.java +++ b/src/com/android/dialer/CallDetailActivity.java @@ -47,6 +47,7 @@ import android.widget.Toast; import com.android.contacts.common.ContactPhotoManager; import com.android.contacts.common.ContactPhotoManager.DefaultImageRequest; +import com.android.contacts.common.util.PermissionsUtil; import com.android.contacts.common.GeoUtil; import com.android.contacts.common.CallUtil; import com.android.dialer.calllog.CallDetailHistoryAdapter; @@ -267,6 +268,7 @@ public class CallDetailActivity extends Activity @Override public void onResume() { super.onResume(); + PermissionsUtil.updateCachedPermissions(this); getCallDetails(); } |