diff options
author | Andrew Lee <anwlee@google.com> | 2015-10-21 20:48:39 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2015-10-21 20:48:39 +0000 |
commit | 4538df8b84f9783d2a92a9529b8914210c99fa00 (patch) | |
tree | c14b2b33e6403792215adf68776944d758fcb939 /res | |
parent | 769ffcc70108f6c3f084567f012e3e984e7d211a (diff) | |
parent | 7844b1d11b6f8715ff2782cd3d01a3d1c397f052 (diff) |
Disable call blocking after emergency call.
am: 7844b1d11b
* commit '7844b1d11b6f8715ff2782cd3d01a3d1c397f052':
Disable call blocking after emergency call.
Diffstat (limited to 'res')
-rw-r--r-- | res/layout/blocked_number_fragment.xml | 8 | ||||
-rw-r--r-- | res/layout/blocked_number_header.xml | 25 | ||||
-rw-r--r-- | res/values/colors.xml | 1 | ||||
-rw-r--r-- | res/values/strings.xml | 19 |
4 files changed, 41 insertions, 12 deletions
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" /> - <TextView android:id="@android:id/empty" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:paddingStart="@dimen/blocked_number_horizontal_margin" - android:paddingTop="@dimen/blocked_number_top_margin" - android:paddingBottom="@dimen/blocked_number_bottom_margin" - android:text="@string/listNoBlockedNumbers" /> - </LinearLayout> 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"> + <LinearLayout android:id="@+id/blocked_numbers_disabled_for_emergency" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical" + android:layout_marginBottom="8dp" + android:padding="16dp" + android:visibility="gone"> + + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@string/blocked_numbers_disabled_emergency_header_label" + android:textStyle="bold" + android:textColor="@color/blocked_number_disabled_emergency_header_color" + style="@style/BlockedNumbersDescriptionTextStyle" /> + + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@string/blocked_numbers_disabled_emergency_desc" + style="@style/BlockedNumbersDescriptionTextStyle" /> + + </LinearLayout> + + <android.support.v7.widget.CardView android:id="@+id/hide_blocked_calls_setting" android:layout_width="match_parent" diff --git a/res/values/colors.xml b/res/values/colors.xml index bf7bfb235..d8d0de4b9 100644 --- a/res/values/colors.xml +++ b/res/values/colors.xml @@ -132,6 +132,7 @@ <color name="blocked_number_accent_color">#42A5F5</color> <color name="blocked_number_block_color">#F44336</color> <color name="blocked_number_header_color">@color/dialer_theme_color</color> + <color name="blocked_number_disabled_emergency_header_color">#616161</color> <!-- Colors for onboarding flow --> <color name="onboarding_primary_text_color">#ffffff</color> 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 @@ <!-- Label for the blocked numbers settings section [CHAR LIMIT=30] --> <string name="manage_blocked_numbers_label">Blocked numbers</string> + <!-- Label for a section describing that call blocking is temporarily disabled because an + emergency call was made. [CHAR LIMIT=40] --> + <string name="blocked_numbers_disabled_emergency_header_label"> + Call blocking temporarily off + </string> + + <!-- Description that call blocking is temporarily disabled because the user called an + emergency number, and explains that call blocking will be re-enabled after a buffer + period has passed. [CHAR LIMIT=NONE] --> + <string name="blocked_numbers_disabled_emergency_desc"> + 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. + </string> + <!-- Label for fragment to import numbers from contacts marked as send to voicemail. [CHAR_LIMIT=30] --> <string name="import_send_to_voicemail_numbers_label">Import numbers</string> @@ -859,10 +874,6 @@ [CHAR LIMIT=NONE]--> <string name="description_blocked_number_list_delete">Unblock number</string> - <!-- Displayed in the blocked numbers list when there are no blocked numbers. - [CHAR LIMIT=NONE] --> - <string name="listNoBlockedNumbers">No blocked numbers</string> - <!-- Button to bring up UI to add a number to the blocked call list. [CHAR LIMIT=40] --> <string name="blockNumber">Add number</string> |