summaryrefslogtreecommitdiffstats
path: root/res/layout
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2017-07-07 03:12:21 -0700
committerSunny Goyal <sunnygoyal@google.com>2017-07-10 11:10:35 -0700
commit848cad56ced14a2149d937bd6482387df8538c98 (patch)
tree2e6cbe2b29a982ff123c2c48a924b98d93e83820 /res/layout
parent6c5d10261eceaf1b57bce82e4e31d272bad2c349 (diff)
downloadandroid_packages_apps_Trebuchet-848cad56ced14a2149d937bd6482387df8538c98.tar.gz
android_packages_apps_Trebuchet-848cad56ced14a2149d937bd6482387df8538c98.tar.bz2
android_packages_apps_Trebuchet-848cad56ced14a2149d937bd6482387df8538c98.zip
Adding a warning button when notification access is not available
Bug: 63418030 Change-Id: I4c2c497d989902ac002314a3b8fb97083757958b
Diffstat (limited to 'res/layout')
-rw-r--r--res/layout/notification_pref_warning.xml24
1 files changed, 24 insertions, 0 deletions
diff --git a/res/layout/notification_pref_warning.xml b/res/layout/notification_pref_warning.xml
new file mode 100644
index 000000000..795699e99
--- /dev/null
+++ b/res/layout/notification_pref_warning.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2017 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<ImageView
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="48dp"
+ android:layout_height="match_parent"
+ android:background="?android:attr/selectableItemBackgroundBorderless"
+ android:contentDescription="@string/title_missing_notification_access"
+ android:scaleType="center"
+ android:src="@drawable/ic_warning"
+ android:tint="?android:attr/textColorSecondary" />