diff options
author | Ravindra <c_rthat@codeaurora.org> | 2015-10-07 17:00:57 +0530 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2015-10-08 00:01:50 -0700 |
commit | 1b2b754a3100c0aab4afffe5890276a3f91eb4cc (patch) | |
tree | d186bf9caef7c25cbcec663ac527ec6c7c172a1e /telecomm/java/android/telecom/InCallService.java | |
parent | 09ecabc3ea7a13d140a0c050afdafc6e9e2884a3 (diff) | |
download | frameworks_base-1b2b754a3100c0aab4afffe5890276a3f91eb4cc.zip frameworks_base-1b2b754a3100c0aab4afffe5890276a3f91eb4cc.tar.gz frameworks_base-1b2b754a3100c0aab4afffe5890276a3f91eb4cc.tar.bz2 |
Fix to display merge icon on failure.
Trigger a state change to incallui with the existing state
on an unsuccessful merge in order to enable merge icon.
Change-Id: I1c7baa7a2c2ccf277eff06d68da0b419ae587a19
CRs-Fixed: 815642
Diffstat (limited to 'telecomm/java/android/telecom/InCallService.java')
-rw-r--r-- | telecomm/java/android/telecom/InCallService.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/telecomm/java/android/telecom/InCallService.java b/telecomm/java/android/telecom/InCallService.java index b89490e..1b6a98f 100644 --- a/telecomm/java/android/telecom/InCallService.java +++ b/telecomm/java/android/telecom/InCallService.java @@ -73,6 +73,7 @@ public abstract class InCallService extends Service { private static final int MSG_ON_CALL_AUDIO_STATE_CHANGED = 5; private static final int MSG_BRING_TO_FOREGROUND = 6; private static final int MSG_ON_CAN_ADD_CALL_CHANGED = 7; + private static final int MSG_ON_MERGE_FAILED = 8; /** Default Handler used to consolidate binder method calls onto a single thread. */ private final Handler mHandler = new Handler(Looper.getMainLooper()) { @@ -91,6 +92,9 @@ public abstract class InCallService extends Service { case MSG_ADD_CALL: mPhone.internalAddCall((ParcelableCall) msg.obj); break; + case MSG_ON_MERGE_FAILED: + mPhone.onMergeFailed((ParcelableCall) msg.obj); + break; case MSG_UPDATE_CALL: mPhone.internalUpdateCall((ParcelableCall) msg.obj); break; @@ -156,6 +160,11 @@ public abstract class InCallService extends Service { } @Override + public void onMergeFailed(ParcelableCall call) { + mHandler.obtainMessage(MSG_ON_MERGE_FAILED, call).sendToTarget(); + } + + @Override public void bringToForeground(boolean showDialpad) { mHandler.obtainMessage(MSG_BRING_TO_FOREGROUND, showDialpad ? 1 : 0, 0).sendToTarget(); } |