Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(815)

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillListAdapter.java

Issue 11360207: Add Java resources to content and chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove obsolete findbugs warnings Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillListAdapter.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillListAdapter.java b/chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillListAdapter.java
index 2887a423006c8c2419ab2fee9cc9a76e3a020888..123db1a73b782556f1104bf5c62069cab74458c8 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillListAdapter.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillListAdapter.java
@@ -11,7 +11,7 @@ import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
-import org.chromium.content.app.AppResource;
+import org.chromium.chrome.R;
import java.util.ArrayList;
@@ -22,7 +22,7 @@ public class AutofillListAdapter extends ArrayAdapter<AutofillSuggestion> {
private Context mContext;
AutofillListAdapter(Context context, ArrayList<AutofillSuggestion> objects) {
- super(context, AppResource.LAYOUT_AUTOFILL_TEXT, objects);
+ super(context, R.layout.autofill_text, objects);
mContext = context;
}
@@ -32,13 +32,13 @@ public class AutofillListAdapter extends ArrayAdapter<AutofillSuggestion> {
if (convertView == null) {
LayoutInflater inflater =
(LayoutInflater) mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
- layout = inflater.inflate(AppResource.LAYOUT_AUTOFILL_TEXT, null);
+ layout = inflater.inflate(R.layout.autofill_text, null);
}
- TextView nameView = (TextView) layout.findViewById(AppResource.ID_AUTOFILL_NAME);
+ TextView nameView = (TextView) layout.findViewById(R.id.autofill_name);
nameView.setText(getItem(position).mName);
- TextView labelView = (TextView) layout.findViewById(AppResource.ID_AUTOFILL_LABEL);
+ TextView labelView = (TextView) layout.findViewById(R.id.autofill_label);
labelView.setText(getItem(position).mLabel);
return layout;
}
-}
+}

Powered by Google App Engine
This is Rietveld 408576698