summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlinyuh <linyuh@google.com>2018-03-16 00:05:53 -0700
committerCopybara-Service <copybara-piper@google.com>2018-03-16 00:06:50 -0700
commit7086ed10a54bf28e943af6f5b890a81165475be2 (patch)
treed576c5336a6b0a8e5b52404088ac0e4a487b9a01
parentfd3c288a48570bbc13fa0e24ac7af5f6a137b6fd (diff)
Use a vector "unblock" icon in the bottom sheet
Bug: 73133096 Test: ModulesTest PiperOrigin-RevId: 189303135 Change-Id: Id92d65e4c0bbb3c325c9d89d41d0645df19cde06
-rw-r--r--assets/quantum/res/drawable/quantum_ic_unblock_vd_theme_24.xml27
-rw-r--r--java/com/android/dialer/historyitemactions/SharedModules.java2
-rw-r--r--java/com/android/dialer/historyitemactions/res/drawable-xxxhdpi/bottomsheet_unblock.pngbin1034 -> 0 bytes
3 files changed, 28 insertions, 1 deletions
diff --git a/assets/quantum/res/drawable/quantum_ic_unblock_vd_theme_24.xml b/assets/quantum/res/drawable/quantum_ic_unblock_vd_theme_24.xml
new file mode 100644
index 000000000..35e974d0b
--- /dev/null
+++ b/assets/quantum/res/drawable/quantum_ic_unblock_vd_theme_24.xml
@@ -0,0 +1,27 @@
+<!--
+ ~ Copyright (C) 2018 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
+ -->
+
+<!-- A custom-made "unblock" icon for Dialer -->
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="24dp"
+ android:height="24dp"
+ android:viewportWidth="24.0"
+ android:viewportHeight="24.0"
+ android:tint="?attr/colorControlNormal">
+ <path
+ android:fillColor="@android:color/white"
+ android:pathData="M12,2C17.52,2 22,6.48 22,12C22,17.52 17.52,22 12,22C6.48,22 2,17.52 2,12C2,6.48 6.48,2 12,2ZM12,4C7.584,4 4,7.584 4,12C4,16.416 7.584,20 12,20C16.416,20 20,16.416 20,12C20,7.584 16.416,4 12,4ZM16.5,6.086L17.914,7.5L16.5,8.914L15.086,7.5L16.5,6.086ZM13.5,9.086L14.914,10.5L13.5,11.914L12.086,10.5L13.5,9.086ZM10.5,12.086L11.914,13.5L10.5,14.914L9.086,13.5L10.5,12.086ZM7.5,15.086L8.914,16.5L7.5,17.914L6.086,16.5L7.5,15.086Z"/>
+</vector>
diff --git a/java/com/android/dialer/historyitemactions/SharedModules.java b/java/com/android/dialer/historyitemactions/SharedModules.java
index 468661feb..8604bed1d 100644
--- a/java/com/android/dialer/historyitemactions/SharedModules.java
+++ b/java/com/android/dialer/historyitemactions/SharedModules.java
@@ -179,7 +179,7 @@ public class SharedModules {
@Override
public int getDrawableId() {
return isBlocked
- ? R.drawable.bottomsheet_unblock // TODO(a bug): use a vector icon
+ ? R.drawable.quantum_ic_unblock_vd_theme_24
: R.drawable.quantum_ic_block_vd_theme_24;
}
diff --git a/java/com/android/dialer/historyitemactions/res/drawable-xxxhdpi/bottomsheet_unblock.png b/java/com/android/dialer/historyitemactions/res/drawable-xxxhdpi/bottomsheet_unblock.png
deleted file mode 100644
index 01551e2fc..000000000
--- a/java/com/android/dialer/historyitemactions/res/drawable-xxxhdpi/bottomsheet_unblock.png
+++ /dev/null
Binary files differ