summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser/homepages/Template.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/browser/homepages/Template.java')
-rw-r--r--src/com/android/browser/homepages/Template.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/browser/homepages/Template.java b/src/com/android/browser/homepages/Template.java
index c1a6b0e..e918b07 100644
--- a/src/com/android/browser/homepages/Template.java
+++ b/src/com/android/browser/homepages/Template.java
@@ -30,6 +30,8 @@ import android.content.res.Resources;
import android.database.Cursor;
import android.util.TypedValue;
+import com.android.browser.R;
+
public class Template {
private static HashMap<Integer, Template> sCachedTemplates = new HashMap<Integer, Template>();
@@ -234,7 +236,7 @@ public class Template {
private static String replaceConsts(Context context, String template) {
final Pattern pattern = Pattern.compile("<%@\\s*(\\w+/\\w+)\\s*%>");
final Resources res = context.getResources();
- final String packageName = context.getPackageName();
+ final String packageName = R.class.getPackage().getName();
Matcher m = pattern.matcher(template);
StringBuffer sb = new StringBuffer();
while (m.find()) {