Replace default user picture.
Bug: 14842969 Change-Id: I4a46a2499ccf47e1bc13a179561d6ab271502ddb
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 5.4 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 3.6 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 7.4 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 7.3 KiB |
28
packages/SystemUI/res/drawable/ic_account_circle.xml
Normal file
28
packages/SystemUI/res/drawable/ic_account_circle.xml
Normal file
@@ -0,0 +1,28 @@
|
||||
<!--
|
||||
Copyright (C) 2014 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" >
|
||||
<size
|
||||
android:width="24dp"
|
||||
android:height="24dp"/>
|
||||
|
||||
<viewport
|
||||
android:viewportWidth="24.0"
|
||||
android:viewportHeight="24.0"/>
|
||||
|
||||
<path
|
||||
android:fill="#FFFFFFFF"
|
||||
android:pathData="M12.0,2.0C6.5,2.0 2.0,6.5 2.0,12.0s4.5,10.0 10.0,10.0c5.5,0.0 10.0,-4.5 10.0,-10.0S17.5,2.0 12.0,2.0zM12.0,5.0c1.7,0.0 3.0,1.3 3.0,3.0c0.0,1.7 -1.3,3.0 -3.0,3.0c-1.7,0.0 -3.0,-1.3 -3.0,-3.0C9.0,6.3 10.3,5.0 12.0,5.0zM12.0,19.2c-2.5,0.0 -4.7,-1.3 -6.0,-3.2c0.0,-2.0 4.0,-3.1 6.0,-3.1c2.0,0.0 6.0,1.1 6.0,3.1C16.7,17.9 14.5,19.2 12.0,19.2z"/>
|
||||
</vector>
|
||||
@@ -80,7 +80,7 @@
|
||||
android:layout_alignParentEnd="true"
|
||||
android:background="@null"
|
||||
android:scaleType="centerInside"
|
||||
android:padding="6dp"
|
||||
android:padding="8dp"
|
||||
/>
|
||||
|
||||
<ImageButton android:id="@+id/settings_button"
|
||||
|
||||
@@ -166,7 +166,7 @@ public final class UserInfoController {
|
||||
if (rawAvatar != null) {
|
||||
avatar = new BitmapDrawable(mContext.getResources(), circularClip(rawAvatar));
|
||||
} else {
|
||||
avatar = mContext.getResources().getDrawable(R.drawable.ic_qs_default_user);
|
||||
avatar = mContext.getResources().getDrawable(R.drawable.ic_account_circle);
|
||||
mUseDefaultAvatar = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user