summaryrefslogtreecommitdiff
path: root/java/com/android/dialer/voicemail
diff options
context:
space:
mode:
authormdooley <mdooley@google.com>2017-11-01 15:26:50 -0700
committerzachh <zachh@google.com>2017-11-10 23:40:37 +0000
commit96f71f736034d33e4533e2d03321f7e5cd94efa7 (patch)
tree91e60f85da1af28da099e18a23fe9b5dde2110dd /java/com/android/dialer/voicemail
parentd3014bf98eed2e3968c81999350e6e8be58910b2 (diff)
Fixing bug in donation settings
in cl/173731907 we added a setting for donating voicemails, but didn't distinguish between when this feature is enabled/disabled by the user or by configuration. this cl fixes that by adding a method to check if the feature is available (ie enabled by config). Bug: 62423454 Test: manual and unit test PiperOrigin-RevId: 174245260 Change-Id: I45a59de7f4a171d759e2fcf86db27a100a84de67
Diffstat (limited to 'java/com/android/dialer/voicemail')
-rw-r--r--java/com/android/dialer/voicemail/settings/VoicemailSettingsFragment.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/com/android/dialer/voicemail/settings/VoicemailSettingsFragment.java b/java/com/android/dialer/voicemail/settings/VoicemailSettingsFragment.java
index efeed0861..2b496c0ca 100644
--- a/java/com/android/dialer/voicemail/settings/VoicemailSettingsFragment.java
+++ b/java/com/android/dialer/voicemail/settings/VoicemailSettingsFragment.java
@@ -113,7 +113,7 @@ public class VoicemailSettingsFragment extends PreferenceFragment
if (!VoicemailComponent.get(getContext())
.getVoicemailClient()
- .isVoicemailDonationEnabled(getContext(), phoneAccountHandle)) {
+ .isVoicemailDonationAvailable(getContext())) {
getPreferenceScreen().removePreference(donateVoicemailSwitchPreference);
}