From 7844b1d11b6f8715ff2782cd3d01a3d1c397f052 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Wed, 21 Oct 2015 00:16:37 -0700 Subject: Disable call blocking after emergency call. Will be disabled for 48 hours after an emergency call. + Add utility for noting last time of an emergency call. + Add utility for comparing current time to last time of an emergency call. + If current time is within 48 hours of emergency call, display text in settings explaining why call blocking is disabled. Bug: 24418319 Change-Id: I6824340f04fae17b73f17843a9f6ef991afa0327 --- res/layout/blocked_number_fragment.xml | 8 -------- res/layout/blocked_number_header.xml | 25 +++++++++++++++++++++++++ res/values/colors.xml | 1 + res/values/strings.xml | 19 +++++++++++++++---- 4 files changed, 41 insertions(+), 12 deletions(-) (limited to 'res') diff --git a/res/layout/blocked_number_fragment.xml b/res/layout/blocked_number_fragment.xml index b98b58fc5..7aff06ec7 100644 --- a/res/layout/blocked_number_fragment.xml +++ b/res/layout/blocked_number_fragment.xml @@ -27,12 +27,4 @@ android:divider="@null" android:headerDividersEnabled="false" /> - - diff --git a/res/layout/blocked_number_header.xml b/res/layout/blocked_number_header.xml index 3fcdf398b..ce1d4feab 100644 --- a/res/layout/blocked_number_header.xml +++ b/res/layout/blocked_number_header.xml @@ -19,6 +19,31 @@ android:layout_height="wrap_content" android:orientation="vertical"> + + + + + + + + + #42A5F5 #F44336 @color/dialer_theme_color + #616161 #ffffff diff --git a/res/values/strings.xml b/res/values/strings.xml index 9c70dd46a..df8d0faef 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -826,6 +826,21 @@ Blocked numbers + + + Call blocking temporarily off + + + + + Call blocking has been disabled because you contacted emergency services from this phone + within the last 48 hours. It will be automatically reenabled once the 48 hour period + expires. + + Import numbers @@ -859,10 +874,6 @@ [CHAR LIMIT=NONE]--> Unblock number - - No blocked numbers - Add number -- cgit v1.2.3