summaryrefslogtreecommitdiff
path: root/res/layout/blocked_number_fragment.xml
diff options
context:
space:
mode:
authorAndrew Lee <anwlee@google.com>2015-10-19 23:57:25 -0700
committerAndrew Lee <anwlee@google.com>2015-10-20 14:18:18 -0700
commitb980fc4386cdc24a605fc682d0fef0c5dc54c327 (patch)
tree63d6f383e5d7da937c8abc7a001c447db64d0cdf /res/layout/blocked_number_fragment.xml
parentd0a5d1421e52caad8073c3e08fbb645c069344df (diff)
Add setting for hiding blocked calls.
+ Add settings switch to blocked number settings. + Add utility for checking/setting whether calls should be blocked. + Filter out blocked calls in call log query, if appropriate. + Refresh call log fragment after a change in setting. Followup work: delete voicemails for calls by blocked numbers after the time when the user blocked them. Bug: 24134270 Change-Id: I85088697559ef6fb446b82617f14f1c6fa893df1
Diffstat (limited to 'res/layout/blocked_number_fragment.xml')
-rw-r--r--res/layout/blocked_number_fragment.xml30
1 files changed, 30 insertions, 0 deletions
diff --git a/res/layout/blocked_number_fragment.xml b/res/layout/blocked_number_fragment.xml
index bb4b7f20f..906e8a10c 100644
--- a/res/layout/blocked_number_fragment.xml
+++ b/res/layout/blocked_number_fragment.xml
@@ -25,6 +25,36 @@
<android.support.v7.widget.CardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
+ android:layout_marginBottom="8dp"
+ card_view:cardCornerRadius="0dp">
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="horizontal"
+ android:gravity="center_vertical"
+ android:padding="16dp"
+ android:paddingEnd="8dp">
+
+ <TextView
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:text="@string/blocked_call_settings_hide_setting"
+ style="@style/BlockedNumbersDescriptionTextStyle" />
+
+ <Switch android:id="@+id/hide_blocked_calls_switch"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginLeft="40dp" />
+
+ </LinearLayout>
+
+ </android.support.v7.widget.CardView>
+
+ <android.support.v7.widget.CardView
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
card_view:cardCornerRadius="0dp">
<LinearLayout