Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
halo
packages_apps_Camera2
Commits
ffa2ff02
Commit
ffa2ff02
authored
10 years ago
by
Spike Sprague
Browse files
Options
Download
Email Patches
Plain Diff
added a mutate() call when loading LayerDrawables.
bug: 16566825 Change-Id: I71a3a9787b73957f9c34bf1ffa52df41c3a5f6e6
parent
df5989b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/com/android/camera/ui/BottomBar.java
src/com/android/camera/ui/BottomBar.java
+1
-1
No files found.
src/com/android/camera/ui/BottomBar.java
View file @
ffa2ff02
...
...
@@ -107,7 +107,7 @@ public class BottomBar extends FrameLayout {
for
(
int
i
=
0
;
i
<
len
;
i
++)
{
int
drawableId
=
ar
.
getResourceId
(
i
,
-
1
);
LayerDrawable
shutterBackground
=
mShutterButtonBackgrounds
[
i
]
=
(
LayerDrawable
)
context
.
getResources
().
getDrawable
(
drawableId
);
(
LayerDrawable
)
context
.
getResources
().
getDrawable
(
drawableId
)
.
mutate
()
;
// the background for video has a circle_item drawable placeholder
// that gets replaced by an AnimatedCircleDrawable for the cool
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment