diff options
author | Brandon Maxwell <maxwelb@google.com> | 2016-03-21 20:12:07 -0700 |
---|---|---|
committer | Brandon Maxwell <maxwelb@google.com> | 2016-03-21 20:28:36 -0700 |
commit | edf03935c1b4ff958e133c505dd94046b07a62b1 (patch) | |
tree | 9b1990adf09bb90d95a9ba04b58f999fff491039 /src/com | |
parent | ac6cd58c8642d22e47a6d4b30295137a61177e85 (diff) |
No notification shown for blocking after E911 call
The Dialer is no longer responsible for showing a notification that
call blocking is disabled after the user makes an emergency call.
This CL ensures that the notification isn't shown.
Change-Id: Ib87679a067831b771d99e5b2b205c84101f05fef
Fixes: 27705312
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/android/dialer/filterednumber/FilteredNumbersUtil.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/com/android/dialer/filterednumber/FilteredNumbersUtil.java b/src/com/android/dialer/filterednumber/FilteredNumbersUtil.java index e3870ded9..498b10a45 100644 --- a/src/com/android/dialer/filterednumber/FilteredNumbersUtil.java +++ b/src/com/android/dialer/filterednumber/FilteredNumbersUtil.java @@ -33,6 +33,7 @@ import android.widget.Toast; import com.android.contacts.common.testing.NeededForTesting; import com.android.dialer.R; +import com.android.dialer.compat.FilteredNumberCompat; import com.android.dialer.database.FilteredNumberAsyncQueryHandler; import com.android.dialer.database.FilteredNumberAsyncQueryHandler.OnHasBlockedNumbersListener; import com.android.dialer.database.FilteredNumberContract.FilteredNumber; @@ -298,6 +299,10 @@ public class FilteredNumbersUtil { } public static void maybeNotifyCallBlockingDisabled(final Context context) { + // The Dialer is not responsible for this notification after migrating + if (FilteredNumberCompat.useNewFiltering()) { + return; + } // Skip if the user has already received a notification for the most recent emergency call. if (PreferenceManager.getDefaultSharedPreferences(context) .getBoolean(NOTIFIED_CALL_BLOCKING_DISABLED_BY_EMERGENCY_CALL_PREF_KEY, false)) { |