Index: content/public/android/java/src/org/chromium/content/browser/input/MonthPickerDialog.java |
diff --git a/content/public/android/java/src/org/chromium/content/browser/input/MonthPickerDialog.java b/content/public/android/java/src/org/chromium/content/browser/input/MonthPickerDialog.java |
index 354810e5e429662ca400284a90d5dcc54cf3a054..b79a614e0c02f216ad8ef8946cae0cc3801eca03 100644 |
--- a/content/public/android/java/src/org/chromium/content/browser/input/MonthPickerDialog.java |
+++ b/content/public/android/java/src/org/chromium/content/browser/input/MonthPickerDialog.java |
@@ -48,22 +48,7 @@ public class MonthPickerDialog extends AlertDialog implements OnClickListener, |
OnMonthSetListener callBack, |
int year, |
int monthOfYear) { |
- this(context, 0, callBack, year, monthOfYear); |
- } |
- |
- /** |
- * @param context The context the dialog is to run in. |
- * @param theme the theme to apply to this dialog |
- * @param callBack How the parent is notified that the date is set. |
- * @param year The initial year of the dialog. |
- * @param monthOfYear The initial month of the dialog. |
- */ |
- public MonthPickerDialog(Context context, |
- int theme, |
- OnMonthSetListener callBack, |
- int year, |
- int monthOfYear) { |
- super(context, theme); |
+ super(context, 0); |
mCallBack = callBack; |
@@ -108,39 +93,4 @@ public class MonthPickerDialog extends AlertDialog implements OnClickListener, |
public void onMonthChanged(MonthPicker view, int year, int month) { |
mMonthPicker.init(year, month, null); |
} |
- |
- /** |
- * Gets the {@link MonthPicker} contained in this dialog. |
- * |
- * @return The calendar view. |
- */ |
- public MonthPicker getMonthPicker() { |
- return mMonthPicker; |
- } |
- |
- /** |
- * Sets the current date. |
- * |
- * @param year The date year. |
- * @param monthOfYear The date month. |
- */ |
- public void updateDate(int year, int monthOfYear) { |
- mMonthPicker.updateMonth(year, monthOfYear); |
- } |
- |
- @Override |
- public Bundle onSaveInstanceState() { |
- Bundle state = super.onSaveInstanceState(); |
- state.putInt(YEAR, mMonthPicker.getYear()); |
- state.putInt(MONTH, mMonthPicker.getMonth()); |
- return state; |
- } |
- |
- @Override |
- public void onRestoreInstanceState(Bundle savedInstanceState) { |
- super.onRestoreInstanceState(savedInstanceState); |
- int year = savedInstanceState.getInt(YEAR); |
- int month = savedInstanceState.getInt(MONTH); |
- mMonthPicker.init(year, month, this); |
- } |
} |