commit | a9a82f52cbcadd0b9a4aafa0c785c0d6af629f1c | [log] [tgz] |
---|---|---|
author | Santos Cordon <santoscordon@google.com> | Fri Feb 06 04:34:32 2015 -0800 |
committer | Santos Cordon <santoscordon@google.com> | Thu Feb 19 22:46:01 2015 -0800 |
tree | 4d399f2124cc4a3aa6da2558392faf0d72f2a72e | |
parent | e65f03182eb76fabe8337a82fc3eef7230b669a1 [diff] |
Add cache for isVoicemail check. bindView() gets called many times at dialer startup and layout updates. Besides being costly, it invokes cross-process TelecomManager methods. This change addresses the cross-process issues by adding a short-lived cache to isVoicemail() method invocations. Change-Id: Ib69c0eb3969a1b7d77c9fd1a2aa6e578a31fb5e9