Skip to content
Snippets Groups Projects
Commit 55fcd7b8 authored by Hyundo Moon's avatar Hyundo Moon
Browse files

Stop using BT icon from private resource

Currently the BT icon is a private resource in frameworks/base,
and it is being used from BT module via private access (@*android).
As a result, the icon is not properly shown if the resource ID becomes
different between when mainline module is built and when it is run.

This CL copies BT icon into BT module and uses it.

As the tint color in bt_share.xml is also private,
this CL uses a blue color from official Bluetooth website.

Bug: 279384742
Test: Sharing via bluetooth shows the correct icon
Change-Id: I9d2ac626f294dea17eecebfd70cd1e7a2ae01cd0
parent a88203a1
No related branches found
No related tags found
No related merge requests found
<!--
~ Copyright (C) 2023 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.
-->
<!-- This drawable should only be used by the Bluetooth application for its share target icon. -->
<!-- The tint color is from https://www.bluetooth.com/develop-with-bluetooth/marketing-branding/ -->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24"
android:tint="#2285F8">
<path
android:fillColor="@android:color/white"
android:pathData="M17.71,7.71L12,2h-1v7.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L11,14.41V22h1l5.71-5.71L13.41,12L17.71,7.71z M13,5.83 l1.88,1.88L13,9.59V5.83z M14.88,16.29L13,18.17v-3.76L14.88,16.29z" />
</vector>
......@@ -16,7 +16,7 @@
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<foreground>
<inset
android:drawable="@*android:drawable/ic_bluetooth_share_icon"
android:drawable="@drawable/ic_bluetooth_share_icon"
android:insetTop="25%"
android:insetRight="25%"
android:insetBottom="25%"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment