Merge "Read NumberPicker value after finishing edit." into jb-mr2-dev

This commit is contained in:
Jeff Sharkey
2013-03-25 22:12:34 +00:00
committed by Android (Google) Code Review

View File

@@ -1745,6 +1745,9 @@ public class DataUsageSummary extends Fragment {
new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
// clear focus to finish pending text edits
cycleDayPicker.clearFocus();
final int cycleDay = cycleDayPicker.getValue();
final String cycleTimezone = new Time().timezone;
editor.setPolicyCycleDay(template, cycleDay, cycleTimezone);