diff options
author | Yorke Lee <yorkelee@google.com> | 2013-11-08 12:06:24 -0800 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2013-11-08 14:09:33 -0800 |
commit | 66b60af960e3bf2e3b425966026e4b8ed8d01a03 (patch) | |
tree | 1bbe44d89e4938b67ea9102c66b6b67416b5ac7e /src/com/android/dialer/calllog/CallTypeIconsView.java | |
parent | 7d661343d1ee126e2f34c7204315bbc61a2d9f36 (diff) |
Treat unknown call types as missed calls
Don't crash on unknown call types. Instead, just treat them as missed
calls.
Bug: 11586034
Change-Id: I4ca1721e1526ade36237251e7636d161ca8490be
Diffstat (limited to 'src/com/android/dialer/calllog/CallTypeIconsView.java')
-rw-r--r-- | src/com/android/dialer/calllog/CallTypeIconsView.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/com/android/dialer/calllog/CallTypeIconsView.java b/src/com/android/dialer/calllog/CallTypeIconsView.java index e83512861..a65f2c279 100644 --- a/src/com/android/dialer/calllog/CallTypeIconsView.java +++ b/src/com/android/dialer/calllog/CallTypeIconsView.java @@ -86,7 +86,11 @@ public class CallTypeIconsView extends View { case Calls.VOICEMAIL_TYPE: return mResources.voicemail; default: - throw new IllegalArgumentException("invalid call type: " + callType); + // It is possible for users to end up with calls with unknown call types in their + // call history, possibly due to 3rd party call log implementations (e.g. to + // distinguish between rejected and missed calls). Instead of crashing, just + // assume that all unknown call types are missed calls. + return mResources.missed; } } |