From 72d6625a51804acec2d9c9b38dc740a65443bc56 Mon Sep 17 00:00:00 2001 From: Evan Charlton Date: Fri, 7 Nov 2014 16:23:47 -0800 Subject: Allow ILD information to be populated Expose the dialpad's ILD (international / long distance) fields to be populated by the dialer. Bug: 13334252 Change-Id: Ia366148ef1318a2dacc4971d51a3bd34ec3c39de --- src/com/android/dialer/DialtactsActivity.java | 2 +- src/com/android/dialer/dialpad/DialpadFragment.java | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/com/android/dialer/DialtactsActivity.java b/src/com/android/dialer/DialtactsActivity.java index 4b5b198a0..3c9b870dd 100644 --- a/src/com/android/dialer/DialtactsActivity.java +++ b/src/com/android/dialer/DialtactsActivity.java @@ -140,7 +140,7 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O /** * Fragment containing the dialpad that slides into view */ - private DialpadFragment mDialpadFragment; + protected DialpadFragment mDialpadFragment; /** * Fragment for searching phone numbers using the alphanumeric keyboard. diff --git a/src/com/android/dialer/dialpad/DialpadFragment.java b/src/com/android/dialer/dialpad/DialpadFragment.java index 5695f1c48..6daa89cd1 100644 --- a/src/com/android/dialer/dialpad/DialpadFragment.java +++ b/src/com/android/dialer/dialpad/DialpadFragment.java @@ -519,6 +519,14 @@ public class DialpadFragment extends Fragment mStartedFromNewIntent = value; } + public void clearCallRateInformation() { + setCallRateInformation(null, null); + } + + public void setCallRateInformation(String countryName, String displayRate) { + mDialpadView.setCallRateInformation(countryName, displayRate); + } + /** * Sets formatted digits to digits field. */ -- cgit v1.2.3