diff options
author | Ta-wei Yen <twyen@google.com> | 2016-03-22 10:33:44 -0700 |
---|---|---|
committer | Ta-wei Yen <twyen@google.com> | 2016-03-22 18:57:54 +0000 |
commit | 0a9d3be7e92dce46dffeaedb1e6aefc163122bfc (patch) | |
tree | c9685eb16f47bbcfc996c27b5ca9e5050b90184c /src | |
parent | 47af91907bc39b7b94173cc14809b932f516b1a2 (diff) |
Update number blocking strings
+ No message string for unblocking, same as new filtering.
+ String for blocking with new filtering
Fixes:27703247
Change-Id: I4622d9223e03e3c3f207da581ce5b28ee4aa2b42
(cherry picked from commit f0f07d585c95d2bda8a59e9dcffdb687cb21c0fa)
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/dialer/filterednumber/BlockNumberDialogFragment.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/com/android/dialer/filterednumber/BlockNumberDialogFragment.java b/src/com/android/dialer/filterednumber/BlockNumberDialogFragment.java index de4fe99f1..ee4c607ac 100644 --- a/src/com/android/dialer/filterednumber/BlockNumberDialogFragment.java +++ b/src/com/android/dialer/filterednumber/BlockNumberDialogFragment.java @@ -32,6 +32,7 @@ import android.widget.Toast; import com.android.contacts.common.util.ContactDisplayUtils; import com.android.dialer.R; +import com.android.dialer.compat.FilteredNumberCompat; import com.android.dialer.database.FilteredNumberAsyncQueryHandler; import com.android.dialer.database.FilteredNumberAsyncQueryHandler.OnBlockNumberListener; import com.android.dialer.database.FilteredNumberAsyncQueryHandler.OnUnblockNumberListener; @@ -156,13 +157,15 @@ public class BlockNumberDialogFragment extends DialogFragment { R.string.unblock_number_confirmation_title, mDisplayNumber); okText = getString(R.string.unblock_number_ok); - message = getString(R.string.unblock_number_confirmation_message); + message = ""; } else { title = ContactDisplayUtils.getTtsSpannedPhoneNumber(getResources(), R.string.block_number_confirmation_title, mDisplayNumber); okText = getString(R.string.block_number_ok); - if (mVoicemailEnabledChecker.isVisualVoicemailEnabled()) { + if (FilteredNumberCompat.useNewFiltering()) { + message = getString(R.string.block_number_confirmation_message_new_filtering); + } else if (mVoicemailEnabledChecker.isVisualVoicemailEnabled()) { message = getString(R.string.block_number_confirmation_message_vvm); } else { message = getString(R.string.block_number_confirmation_message_no_vvm); |