diff options
author | Yorke Lee <yorkelee@google.com> | 2014-11-18 19:39:51 -0800 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2014-11-18 19:39:51 -0800 |
commit | 96d17e40f8437ee7143c0c9003cce7735a03bb39 (patch) | |
tree | 3ab30f8f3cef28f80626850b7a3849b4f0cceba5 /InCallUI/res/drawable | |
parent | 3e8ec5a893aa5286c280fc8113a9d72855874c04 (diff) |
Improve setting of contact photos in InCallUI
Add drawable caching in CallCardFragment so that we don't set
the same drawable multiple times.
Save and reuse the default contact photo and default conference
photo to avoid possibly decoding them multiple times.
Bug: 18373617
Change-Id: I54b925e6fc6f136f3d3ef27609fcdaf4c39a73dd
Diffstat (limited to 'InCallUI/res/drawable')
-rw-r--r-- | InCallUI/res/drawable/img_conference_automirrored.xml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/InCallUI/res/drawable/img_conference_automirrored.xml b/InCallUI/res/drawable/img_conference_automirrored.xml new file mode 100644 index 000000000..fa1fd4920 --- /dev/null +++ b/InCallUI/res/drawable/img_conference_automirrored.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="utf-8"?> + +<!-- + ~ 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 + --> + +<bitmap xmlns:android="http://schemas.android.com/apk/res/android" + android:src="@drawable/img_conference" + android:autoMirrored="true" />
\ No newline at end of file |