commit | 8ad88302abe5b4b5a1c7cc7c22004b9d8febae0b | [log] [tgz] |
---|---|---|
author | Wenyi Wang <wenyiw@google.com> | Wed Dec 02 18:26:42 2015 -0800 |
committer | Wenyi Wang <wenyiw@google.com> | Fri Dec 04 10:22:13 2015 -0800 |
tree | 3262a416f59379ffcfc89993151d6c4da206ba2d | |
parent | 0f8dbd85b0409c305e209d7283cd65c206057592 [diff] |
Backport isVoiceCapable() using getPhoneType() isVoiceCapable() was unhidden in API 22. We couldn't copy the code to backport it because the app doesn't have access to com.android.internal.R.bool.config_voice_capable. So we use getPhoneType() as a workaround since it also calls isVoiceCapable(). Bug: 25629359 Change-Id: Ia117823ae871c7132014d10c5475eba5dbfda009