summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Chen <stewchen@google.com>2017-03-23 19:14:01 -0700
committerStephen Chen <stewchen@google.com>2017-03-23 19:14:01 -0700
commit29a0cc4b0a244a1367cbbe3bcc0fbf622ce6cca8 (patch)
tree15419cb86998f5fc8050fac0fbe01892c1c1037f
parent8f8960ec32cee9ba6855d91b4c4099b69ea1c819 (diff)
downloadNetworkRecommendation-29a0cc4b0a244a1367cbbe3bcc0fbf622ce6cca8.tar.gz
Change the small icon of Wi-Fi notifications in networkrecommendation.
Bug: 36448003 Test: make, visual inspection Change-Id: I33ad036f28f7b787a0726a640a5575495d1ddb1e
-rw-r--r--res/drawable/ic_signal_wifi_statusbar_not_connected.xml30
-rw-r--r--src/com/android/networkrecommendation/notify/WifiNotificationHelper.java2
-rw-r--r--src/com/android/networkrecommendation/wakeup/WifiWakeupHelper.java2
3 files changed, 32 insertions, 2 deletions
diff --git a/res/drawable/ic_signal_wifi_statusbar_not_connected.xml b/res/drawable/ic_signal_wifi_statusbar_not_connected.xml
new file mode 100644
index 0000000..d74c31b
--- /dev/null
+++ b/res/drawable/ic_signal_wifi_statusbar_not_connected.xml
@@ -0,0 +1,30 @@
+<?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.
+-->
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="26dp"
+ android:height="24dp"
+ android:viewportWidth="26"
+ android:viewportHeight="24">
+
+ <path android:pathData="M0 0h26v24H0z" />
+ <path android:fillColor="#FFFFFF"
+ android:fillAlpha=".3"
+ android:pathData="M21 8.5c.85 0 1.64 .23 2.34 .62 l2.24-2.79C25.1 5.96 20.26 2 13 2S.9 5.96 .42 6.32l12.57 15.66 .01 .02 .01 -.01 4.21-5.24c-.76-.87-1.22-2-1.22-3.25 0-2.76 2.24-5 5-5z" />
+ <path android:fillColor="#FFFFFF"
+ android:pathData="M21 10c-1.93 0-3.5 1.57-3.5 3.5h1.75c0-.97 .78 -1.75 1.75-1.75s1.75 .78 1.75 1.75c0 .48-.2 .92 -.51 1.24l-1.09 1.1c-.63 .63 -1.02 1.51-1.02 2.47v.44h1.75c0-1.31 .39 -1.84 1.03-2.47l.78-.8c.5-.5 .82 -1.2 .82 -1.97C24.5 11.57 22.93 10 21 10zm-.95 11.95h1.9v-1.9h-1.9v1.9z" />
+</vector>
+
diff --git a/src/com/android/networkrecommendation/notify/WifiNotificationHelper.java b/src/com/android/networkrecommendation/notify/WifiNotificationHelper.java
index d50678d..2fbeeab 100644
--- a/src/com/android/networkrecommendation/notify/WifiNotificationHelper.java
+++ b/src/com/android/networkrecommendation/notify/WifiNotificationHelper.java
@@ -169,7 +169,7 @@ public class WifiNotificationHelper {
FLAG_UPDATE_CURRENT);
return new Notification.Builder(mContext)
.setDeleteIntent(deleteIntent)
- .setSmallIcon(R.drawable.ic_signal_wifi_badged_4_bars)
+ .setSmallIcon(R.drawable.ic_signal_wifi_statusbar_not_connected)
.setLargeIcon(badge)
.setAutoCancel(true)
.setTicker(title)
diff --git a/src/com/android/networkrecommendation/wakeup/WifiWakeupHelper.java b/src/com/android/networkrecommendation/wakeup/WifiWakeupHelper.java
index 17b001e..6b1c48d 100644
--- a/src/com/android/networkrecommendation/wakeup/WifiWakeupHelper.java
+++ b/src/com/android/networkrecommendation/wakeup/WifiWakeupHelper.java
@@ -196,7 +196,7 @@ public class WifiWakeupHelper {
Notification notification =
new Notification.Builder(mContext)
.setContentTitle(title)
- .setSmallIcon(R.drawable.ic_signal_wifi_badged_4_bars)
+ .setSmallIcon(R.drawable.ic_signal_wifi_statusbar_not_connected)
.setColor(mContext.getColor(R.color.color_tint))
.setStyle(new Notification.BigTextStyle().bigText(summary))
.setAutoCancel(true)