diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2017-12-28 02:35:07 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2017-12-28 02:35:07 +0000 |
commit | 281998c825ad48d842bb653e2f462719fdb0c1d9 (patch) | |
tree | bc8bfcce809257b3ddbb423a9808082292b9f6a3 /java/com/android/incallui/DialpadPresenter.java | |
parent | fc81a030a7b4f6d4a497f71aed593d398795e7da (diff) | |
parent | 183cb71663320f16149d83eeebaff7795a4b55f2 (diff) |
Merge "Remove field prefixes."
Diffstat (limited to 'java/com/android/incallui/DialpadPresenter.java')
-rw-r--r-- | java/com/android/incallui/DialpadPresenter.java | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/java/com/android/incallui/DialpadPresenter.java b/java/com/android/incallui/DialpadPresenter.java index 002fefce7..e6fbdc22d 100644 --- a/java/com/android/incallui/DialpadPresenter.java +++ b/java/com/android/incallui/DialpadPresenter.java @@ -28,13 +28,13 @@ import com.android.incallui.call.TelecomAdapter; public class DialpadPresenter extends Presenter<DialpadUi> implements InCallPresenter.InCallStateListener { - private DialerCall mCall; + private DialerCall call; @Override public void onUiReady(DialpadUi ui) { super.onUiReady(ui); InCallPresenter.getInstance().addListener(this); - mCall = CallList.getInstance().getOutgoingOrActive(); + call = CallList.getInstance().getOutgoingOrActive(); } @Override @@ -48,8 +48,8 @@ public class DialpadPresenter extends Presenter<DialpadUi> InCallPresenter.InCallState oldState, InCallPresenter.InCallState newState, CallList callList) { - mCall = callList.getOutgoingOrActive(); - Log.d(this, "DialpadPresenter mCall = " + mCall); + call = callList.getOutgoingOrActive(); + Log.d(this, "DialpadPresenter mCall = " + call); } /** @@ -59,7 +59,7 @@ public class DialpadPresenter extends Presenter<DialpadUi> public final void processDtmf(char c) { Log.d(this, "Processing dtmf key " + c); // if it is a valid key, then update the display and send the dtmf tone. - if (PhoneNumberUtils.is12Key(c) && mCall != null) { + if (PhoneNumberUtils.is12Key(c) && call != null) { Log.d(this, "updating display and sending dtmf tone for '" + c + "'"); // Append this key to the "digits" widget. @@ -68,7 +68,7 @@ public class DialpadPresenter extends Presenter<DialpadUi> dialpadUi.appendDigitsToField(c); } // Plays the tone through Telecom. - TelecomAdapter.getInstance().playDtmfTone(mCall.getId(), c); + TelecomAdapter.getInstance().playDtmfTone(call.getId(), c); } else { Log.d(this, "ignoring dtmf request for '" + c + "'"); } @@ -76,9 +76,9 @@ public class DialpadPresenter extends Presenter<DialpadUi> /** Stops the local tone based on the phone type. */ public void stopDtmf() { - if (mCall != null) { + if (call != null) { Log.d(this, "stopping remote tone"); - TelecomAdapter.getInstance().stopDtmfTone(mCall.getId()); + TelecomAdapter.getInstance().stopDtmfTone(call.getId()); } } |