OSDN Git Service
(root)
/
android-x86
/
packages-apps-Camera2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78f8e0a
)
Use View.setBackgroundDrawable instead of setBackground.
author
Wu-cheng Li
<wuchengli@google.com>
Thu, 21 Jun 2012 08:45:55 +0000
(16:45 +0800)
committer
Wu-cheng Li
<wuchengli@google.com>
Thu, 21 Jun 2012 08:45:55 +0000
(16:45 +0800)
View.setBackground was added in API 16. Use setBackgroundDrawable
instead.
bug:
6698428
Change-Id: I1346ba4c640ae98d76e333779b4620cdc48b6a3a
src/com/android/gallery3d/app/MoviePlayer.java
patch
|
blob
|
history
diff --git
a/src/com/android/gallery3d/app/MoviePlayer.java
b/src/com/android/gallery3d/app/MoviePlayer.java
index
11b40bd
..
ea12e4b
100644
(file)
--- a/
src/com/android/gallery3d/app/MoviePlayer.java
+++ b/
src/com/android/gallery3d/app/MoviePlayer.java
@@
-98,9
+98,10
@@
public class MoviePlayer implements
};
private final Runnable mRemoveBackground = new Runnable() {
+ @SuppressWarnings("deprecation")
@Override
public void run() {
- mRootView.setBackground(null);
+ mRootView.setBackground
Drawable
(null);
}
};