diff options
Diffstat (limited to 'src/com/android/phone/common/dialpad/DialpadView.java')
-rw-r--r-- | src/com/android/phone/common/dialpad/DialpadView.java | 30 |
1 files changed, 4 insertions, 26 deletions
diff --git a/src/com/android/phone/common/dialpad/DialpadView.java b/src/com/android/phone/common/dialpad/DialpadView.java index 8d73e82..2b44b0d 100644 --- a/src/com/android/phone/common/dialpad/DialpadView.java +++ b/src/com/android/phone/common/dialpad/DialpadView.java @@ -280,32 +280,6 @@ public class DialpadView extends LinearLayout { mCanDigitsBeEdited = canBeEdited; } - public void setCallRateInformation(String countryName, String displayRate, - final PendingIntent p) { - if (TextUtils.isEmpty(countryName) && TextUtils.isEmpty(displayRate) && - p == null) { - mRateContainer.setVisibility(View.GONE); - return; - } - mRateContainer.setVisibility(View.VISIBLE); - mIldCountry.setText(countryName); - mIldRate.setText(displayRate); - mIldRate.setOnClickListener(new OnClickListener() { - @Override - public void onClick(View view) { - try { - if (p != null) { - p.send(); - } else { - Log.wtf(TAG, "The intent we attempted to fire was null"); - } - } catch (PendingIntent.CanceledException e) { - e.printStackTrace(); - } - } - }); - } - public boolean canDigitsBeEdited() { return mCanDigitsBeEdited; } @@ -512,4 +486,8 @@ public class DialpadView extends LinearLayout { Context localeContext = getContext().createConfigurationContext(overrideConfig); return localeContext.getResources(); } + + public ViewGroup getRateContainer() { + return mRateContainer; + } }
\ No newline at end of file |