[Android] Use the getAppResources shortcut

Ludovic Fauvet git at videolan.org
Mon Oct 15 12:54:46 CEST 2012


vlc-ports/android | branch: master | Ludovic Fauvet <etix at videolan.org> | Mon Oct 15 12:53:22 2012 +0200| [48b3ce5aa289b114aac97b371d0b71087ae291fa] | committer: Ludovic Fauvet

Use the getAppResources shortcut

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=48b3ce5aa289b114aac97b371d0b71087ae291fa
---

 vlc-android/src/org/videolan/vlc/gui/SidebarAdapter.java |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/SidebarAdapter.java b/vlc-android/src/org/videolan/vlc/gui/SidebarAdapter.java
index 21653e9..cf901aa 100644
--- a/vlc-android/src/org/videolan/vlc/gui/SidebarAdapter.java
+++ b/vlc-android/src/org/videolan/vlc/gui/SidebarAdapter.java
@@ -106,7 +106,7 @@ public class SidebarAdapter extends BaseAdapter {
         }
         TextView textView = (TextView)v;
         textView.setText(sidebarEntry.name);
-        Drawable img = VLCApplication.getAppContext().getResources().getDrawable(sidebarEntry.drawableID);
+        Drawable img = VLCApplication.getAppResources().getDrawable(sidebarEntry.drawableID);
         int dp_32 = Util.convertDpToPx(32);
         img.setBounds(0, 0, dp_32, dp_32);
         textView.setCompoundDrawables(img, null, null, null);



More information about the Android mailing list