diff options
author | Alan Viverette <alanv@google.com> | 2014-07-28 16:56:32 -0700 |
---|---|---|
committer | Alan Viverette <alanv@google.com> | 2014-07-29 12:49:50 -0700 |
commit | 60727e07c6ef72e2f494266939c02494a3df28f8 (patch) | |
tree | 93c4d59934335d43a9650819ea89e465a26c37d9 /core/java/android/app/DatePickerDialog.java | |
parent | ec9c7090f845e0804dab70a73307a747dca1ba3d (diff) | |
download | frameworks_base-60727e07c6ef72e2f494266939c02494a3df28f8.zip frameworks_base-60727e07c6ef72e2f494266939c02494a3df28f8.tar.gz frameworks_base-60727e07c6ef72e2f494266939c02494a3df28f8.tar.bz2 |
Clean up TimePicker and DatePicker styling
Removes the time and date picker specific themes and defaults their
theme attributes to use the alert dialog theme attribute's value.
BUG: 14973897
Change-Id: Id5cc74ea0c1a379fc1ee76b354a1bb5ba329585a
Diffstat (limited to 'core/java/android/app/DatePickerDialog.java')
-rw-r--r-- | core/java/android/app/DatePickerDialog.java | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/core/java/android/app/DatePickerDialog.java b/core/java/android/app/DatePickerDialog.java index d7fb707..a78b137 100644 --- a/core/java/android/app/DatePickerDialog.java +++ b/core/java/android/app/DatePickerDialog.java @@ -112,15 +112,14 @@ public class DatePickerDialog extends AlertDialog implements OnClickListener, Context themeContext = getContext(); - LayoutInflater inflater = - (LayoutInflater) themeContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE); - View view = inflater.inflate(R.layout.date_picker_dialog, null); + final LayoutInflater inflater = (LayoutInflater) themeContext.getSystemService( + Context.LAYOUT_INFLATER_SERVICE); + final View view = inflater.inflate(R.layout.date_picker_dialog, null); setView(view); setButtonPanelLayoutHint(LAYOUT_HINT_SIDE); - mDatePicker = (DatePicker) view.findViewById(R.id.datePicker); // Initialize state - mDatePicker.setLegacyMode(false, null); + mDatePicker = (DatePicker) view.findViewById(R.id.datePicker); mDatePicker.setShowDoneButton(true); mDatePicker.setDismissCallback(new DatePicker.DatePickerDismissCallback() { @Override |