Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f821ce75 authored by SeongJae Park's avatar SeongJae Park Committed by Jean-Baptiste Queru
Browse files

Call onTimeChanged when AM/PM changed.

Commit for issue http://code.google.com/p/android/issues/detail?id=24388



[Problem]
TimePicker doesn't call handler's onTimeChanged when AM/PM changed on
ICS althou it does on Gingerbread.

[Solution]
Call onTimeChanged as like as Hour/Minutes does.

Change-Id: I9911c351874168001b69c186f012836fc51285f5
Signed-off-by: default avatarSeongJae Park <sj38.park@gmail.com>
parent 472512f6
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -212,6 +212,7 @@ public class TimePicker extends FrameLayout {
                    button.requestFocus();
                    mIsAm = !mIsAm;
                    updateAmPmControl();
                    onTimeChanged();
                }
            });
        } else {
@@ -226,6 +227,7 @@ public class TimePicker extends FrameLayout {
                    picker.requestFocus();
                    mIsAm = !mIsAm;
                    updateAmPmControl();
                    onTimeChanged();
                }
            });
            mAmPmSpinnerInput = (EditText) mAmPmSpinner.findViewById(R.id.numberpicker_input);