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

Unified Diff: content/public/android/java/src/org/chromium/content/browser/input/MonthPickerDialog.java

Issue 15965004: [Android] Simplify the month and time picker removing unused functionality (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 7 months 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
« no previous file with comments | « content/public/android/java/src/org/chromium/content/browser/input/MonthPicker.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
- }
}
« no previous file with comments | « content/public/android/java/src/org/chromium/content/browser/input/MonthPicker.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698