diff options
author | John Reck <jreck@google.com> | 2011-09-22 14:59:33 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2011-09-22 15:04:50 -0700 |
commit | 1b7d2b95670a6c94cb29e0f4b965cebdf6f65bda (patch) | |
tree | c4e2ec9381ddea4adee9e292724ca46905a81551 /src/com/android/browser/homepages/RequestHandler.java | |
parent | 03583db8ecd24aaafad290bd205fc44fe06d1061 (diff) | |
download | packages_apps_Browser-1b7d2b95670a6c94cb29e0f4b965cebdf6f65bda.zip packages_apps_Browser-1b7d2b95670a6c94cb29e0f4b965cebdf6f65bda.tar.gz packages_apps_Browser-1b7d2b95670a6c94cb29e0f4b965cebdf6f65bda.tar.bz2 |
Fix Resources.getIdentifier usage
Bug: 5352337
Change-Id: If639cf6dec892f2952f8eb3fedbb267e4cc7c0ae
Diffstat (limited to 'src/com/android/browser/homepages/RequestHandler.java')
-rw-r--r-- | src/com/android/browser/homepages/RequestHandler.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/browser/homepages/RequestHandler.java b/src/com/android/browser/homepages/RequestHandler.java index 248bf53..e0a0eac 100644 --- a/src/com/android/browser/homepages/RequestHandler.java +++ b/src/com/android/browser/homepages/RequestHandler.java @@ -115,7 +115,8 @@ public class RequestHandler extends Thread { void writeResource(String fileName) throws IOException {
Resources res = mContext.getResources();
- int id = res.getIdentifier(fileName, null, mContext.getPackageName());
+ String packageName = R.class.getPackage().getName();
+ int id = res.getIdentifier(fileName, null, packageName);
if (id != 0) {
InputStream in = res.openRawResource(id);
byte[] buf = new byte[4096];
|