diff options
author | Yorke Lee <yorkelee@google.com> | 2015-05-12 23:10:36 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-05-12 23:10:36 +0000 |
commit | dee7faf429aa16dc7d85285815f5181d15128aae (patch) | |
tree | 852a91ac0e745da17de80d3183a6fb1929deffba /InCallUI | |
parent | 2a845f1e33ef4bbe02629b5eb54950205c60fdf0 (diff) | |
parent | aab740c45d80535a245723a3490ba11193ba43c4 (diff) |
am db91f8b4: Merge "Dynamically check for permission denials" into mnc-dev
* commit 'db91f8b4f86faad500a8a22a80ddbc200ea32071':
Dynamically check for permission denials
Diffstat (limited to 'InCallUI')
-rw-r--r-- | InCallUI/src/com/android/incallui/AnswerPresenter.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/InCallUI/src/com/android/incallui/AnswerPresenter.java b/InCallUI/src/com/android/incallui/AnswerPresenter.java index 6628f2f86..9decb7b21 100644 --- a/InCallUI/src/com/android/incallui/AnswerPresenter.java +++ b/InCallUI/src/com/android/incallui/AnswerPresenter.java @@ -18,6 +18,7 @@ package com.android.incallui; import android.content.Context; +import com.android.dialer.util.TelecomUtil; import com.android.incallui.InCallPresenter.InCallState; import android.telecom.TelecomManager; import android.telecom.VideoProfile; @@ -249,7 +250,7 @@ public class AnswerPresenter extends Presenter<AnswerPresenter.AnswerUi> public void onText() { if (getUi() != null) { - InCallPresenter.getInstance().getTelecomManager().silenceRinger(); + TelecomUtil.silenceRinger(getUi().getContext()); getUi().showMessageDialog(); } } |