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

Unified Diff: content/public/android/java/src/org/chromium/content/browser/MonthPicker.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: content/public/android/java/src/org/chromium/content/browser/MonthPicker.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/MonthPicker.java b/content/public/android/java/src/org/chromium/content/browser/MonthPicker.java
index f70a7717f508dd42ec7f15b1d56828fb3cb294de..75794eeb35f9c4eb6818feb8010abed5df114782 100644
--- a/content/public/android/java/src/org/chromium/content/browser/MonthPicker.java
+++ b/content/public/android/java/src/org/chromium/content/browser/MonthPicker.java
@@ -24,7 +24,7 @@ import java.util.Calendar;
import java.util.Locale;
import java.util.TimeZone;
-import org.chromium.content.app.AppResource;
+import org.chromium.content.R;
// This class is heavily based on android.widget.DatePicker.
public class MonthPicker extends FrameLayout {
@@ -94,8 +94,7 @@ public class MonthPicker extends FrameLayout {
LayoutInflater inflater = (LayoutInflater) context
.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
- assert AppResource.LAYOUT_MONTH_PICKER != 0;
- inflater.inflate(AppResource.LAYOUT_MONTH_PICKER, this, true);
+ inflater.inflate(R.layout.month_picker, this, true);
OnValueChangeListener onChangeListener = new OnValueChangeListener() {
public void onValueChange(NumberPicker picker, int oldVal, int newVal) {
@@ -121,12 +120,10 @@ public class MonthPicker extends FrameLayout {
}
};
- assert AppResource.ID_MONTH_YEAR_PICKERS_CONTAINER != 0;
- mSpinners = (LinearLayout) findViewById(AppResource.ID_MONTH_YEAR_PICKERS_CONTAINER);
+ mSpinners = (LinearLayout) findViewById(R.id.pickers);
// month
- assert AppResource.ID_MONTH_PICKER != 0;
- mMonthSpinner = (NumberPicker) findViewById(AppResource.ID_MONTH_PICKER);
+ mMonthSpinner = (NumberPicker) findViewById(R.id.month);
mMonthSpinner.setMinValue(0);
mMonthSpinner.setMaxValue(mNumberOfMonths - 1);
mMonthSpinner.setDisplayedValues(mShortMonths);
@@ -134,8 +131,7 @@ public class MonthPicker extends FrameLayout {
mMonthSpinner.setOnValueChangedListener(onChangeListener);
// year
- assert AppResource.ID_YEAR_PICKER != 0;
- mYearSpinner = (NumberPicker) findViewById(AppResource.ID_YEAR_PICKER);
+ mYearSpinner = (NumberPicker) findViewById(R.id.year);
mYearSpinner.setOnLongPressUpdateInterval(100);
mYearSpinner.setOnValueChangedListener(onChangeListener);

Powered by Google App Engine
This is Rietveld 408576698