diff options
author | zachh <zachh@google.com> | 2018-05-14 11:47:48 -0700 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-05-15 11:11:59 -0700 |
commit | 61640759ebc72fb646a1edb77bd8748584e756d6 (patch) | |
tree | b7ce753b4b4a41a748d9db4213e941fddca392f3 /java/com/android/dialer/speeddial | |
parent | 0ae50bdaaa095aa18eeb897f96778de64f3e6cd3 (diff) |
Register system call log content observer if user enables Phone permission.
Previously, we only attempted to create the content observer in Application#onCreate and if the user didn't have the permission enabled, it wouldn't get added and would remain off for the duration of the application's life. Now we check if the observer is registered when refreshing the call log and enable it if necessary.
TEST=unit
Bug: 72461366
Test: unit
PiperOrigin-RevId: 196543060
Change-Id: I1d58efd21fb63e0745b43ac8ff11d87562126a2f
Diffstat (limited to 'java/com/android/dialer/speeddial')
0 files changed, 0 insertions, 0 deletions