diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2017-05-28 07:39:10 +0000 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2017-05-28 07:39:10 +0000 |
commit | c22da53cc257976815abf37af296210634783b12 (patch) | |
tree | a78bb5de1e39bd990b33256abd0893bfcde5cb1e | |
parent | f2b33e9c7f37f29acfcb5d2e32fe9436d6d5ba45 (diff) | |
parent | c276348319cfe7fa074e7bbf9df7ab0b0309fb12 (diff) | |
download | android_packages_apps_Contacts-c22da53cc257976815abf37af296210634783b12.tar.gz android_packages_apps_Contacts-c22da53cc257976815abf37af296210634783b12.tar.bz2 android_packages_apps_Contacts-c22da53cc257976815abf37af296210634783b12.zip |
release-request-80d7cd88-53c4-4e65-952a-f34bc86a0841-for-git_oc-mr1-release-4050000 snap-temp-L22200000068540971
Change-Id: Ieaf962a92dbb44d27bed83d464b1c0c7b0ddfcaa
-rw-r--r-- | src/com/android/contacts/datepicker/DatePickerDialog.java | 42 |
1 files changed, 1 insertions, 41 deletions
diff --git a/src/com/android/contacts/datepicker/DatePickerDialog.java b/src/com/android/contacts/datepicker/DatePickerDialog.java index 82eed24be..de04af92f 100644 --- a/src/com/android/contacts/datepicker/DatePickerDialog.java +++ b/src/com/android/contacts/datepicker/DatePickerDialog.java @@ -78,21 +78,6 @@ public class DatePickerDialog extends AlertDialog implements OnClickListener, /** * @param context The context the dialog is to run in. * @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. - * @param dayOfMonth The initial day of the dialog. - */ - public DatePickerDialog(Context context, - OnDateSetListener callBack, - int year, - int monthOfYear, - int dayOfMonth) { - this(context, callBack, year, monthOfYear, dayOfMonth, false); - } - - /** - * @param context The context the dialog is to run in. - * @param callBack How the parent is notified that the date is set. * @param year The initial year of the dialog or {@link DatePickerDialog#NO_YEAR} if no year * has been specified * @param monthOfYear The initial month of the dialog. @@ -106,7 +91,7 @@ public class DatePickerDialog extends AlertDialog implements OnClickListener, int dayOfMonth, boolean yearOptional) { // Don't pass a theme id. Instead use the default alert dialog theme. - this(context, /* themeId = */ -1, callBack, year, monthOfYear, dayOfMonth, + this(context, /* themeId = */ 0, callBack, year, monthOfYear, dayOfMonth, yearOptional); } @@ -114,24 +99,6 @@ public class DatePickerDialog extends AlertDialog implements OnClickListener, * @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 or {@link DatePickerDialog#NO_YEAR} if no year - * has been specified - * @param monthOfYear The initial month of the dialog. - * @param dayOfMonth The initial day of the dialog. - */ - public DatePickerDialog(Context context, - int theme, - OnDateSetListener callBack, - int year, - int monthOfYear, - int dayOfMonth) { - this(context, theme, callBack, year, monthOfYear, dayOfMonth, false); - } - - /** - * @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 or {@link DatePickerDialog#NO_YEAR} if no * year has been specified. * @param monthOfYear The initial month of the dialog. @@ -183,13 +150,6 @@ public class DatePickerDialog extends AlertDialog implements OnClickListener, updateTitle(year, month, day); } - public void updateDate(int year, int monthOfYear, int dayOfMonth) { - mInitialYear = year; - mInitialMonth = monthOfYear; - mInitialDay = dayOfMonth; - mDatePicker.updateDate(year, monthOfYear, dayOfMonth); - } - private void updateTitle(int year, int month, int day) { final Calendar calendar = Calendar.getInstance(); calendar.set(Calendar.YEAR, year); |