diff options
author | Stephen Bird <sbird@cyngn.com> | 2016-01-19 16:32:08 -0800 |
---|---|---|
committer | Richard MacGregor <rmacgregor@cyngn.com> | 2016-04-08 10:42:49 -0700 |
commit | c5f5b115f589f95d02fb0fd3690d098ca6397974 (patch) | |
tree | fed5b61de9dc57cc3158f9783621833c74b4ebc4 /src | |
parent | 77d309114c14749e5905387cdb03a520b5a16bff (diff) | |
download | android_packages_apps_PhoneCommon-c5f5b115f589f95d02fb0fd3690d098ca6397974.tar.gz android_packages_apps_PhoneCommon-c5f5b115f589f95d02fb0fd3690d098ca6397974.tar.bz2 android_packages_apps_PhoneCommon-c5f5b115f589f95d02fb0fd3690d098ca6397974.zip |
Bringup credits and other minor things
Change-Id: Ib8bd8373a53adc7a370850091a04ada87beca098
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/phone/common/dialpad/DialpadView.java | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/src/com/android/phone/common/dialpad/DialpadView.java b/src/com/android/phone/common/dialpad/DialpadView.java index 53a9dbe..3d17880 100644 --- a/src/com/android/phone/common/dialpad/DialpadView.java +++ b/src/com/android/phone/common/dialpad/DialpadView.java @@ -17,6 +17,7 @@ package com.android.phone.common.dialpad; import android.animation.AnimatorListenerAdapter; +import android.app.PendingIntent; import android.content.Context; import android.content.res.ColorStateList; import android.content.res.Configuration; @@ -280,14 +281,26 @@ public class DialpadView extends LinearLayout { mCanDigitsBeEdited = canBeEdited; } - public void setCallRateInformation(String countryName, String displayRate) { - if (TextUtils.isEmpty(countryName) && TextUtils.isEmpty(displayRate)) { + 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 { + p.send(); + } catch (PendingIntent.CanceledException e) { + e.printStackTrace(); + } + } + }); } public boolean canDigitsBeEdited() { |