diff options
Diffstat (limited to 'InCallUI/src/com/android/incallui/Call.java')
-rw-r--r-- | InCallUI/src/com/android/incallui/Call.java | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/InCallUI/src/com/android/incallui/Call.java b/InCallUI/src/com/android/incallui/Call.java index fcdf09223..2a97a3f5e 100644 --- a/InCallUI/src/com/android/incallui/Call.java +++ b/InCallUI/src/com/android/incallui/Call.java @@ -109,7 +109,8 @@ public final class Call { public static class SessionModificationState { public static final int NO_REQUEST = 0; public static final int WAITING_FOR_RESPONSE = 1; - public static final int REQUEST_FAILED = 1; + public static final int REQUEST_FAILED = 2; + public static final int RECEIVED_UPGRADE_TO_VIDEO_REQUEST = 3; } private static final String ID_PREFIX = Call.class.getSimpleName() + "_"; @@ -362,6 +363,17 @@ public final class Call { } } + public static boolean areSame(Call call1, Call call2) { + if (call1 == null && call2 == null) { + return true; + } else if (call1 == null || call2 == null) { + return false; + } + + // otherwise compare call Ids + return call1.getId().equals(call2.getId()); + } + public int getSessionModificationState() { return mSessionModificationState; } |