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

Commit 553303fa authored by Aurimas Liutikas's avatar Aurimas Liutikas
Browse files

Fix TimePickerDialog positive button clicks.

With my TimePickerDialog change to support keyboard based input I
accidentally broke TimePickerDialog#onClick as it was no longer being
called, instead it was calling TimeSetListener directly. This CL changes
the logic back to use onClick again.

Bug: 36042834
Test: Locally tested FitBit app.
Change-Id: I47d5563c99cc46eaaf2b1d4a96483d6825fc5805
parent 4e73123c
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -151,10 +151,7 @@ public class TimePickerDialog extends AlertDialog implements OnClickListener,
            @Override
            public void onClick(View view) {
                if (mTimePicker.validateInput()) {
                    if (mTimeSetListener != null) {
                        mTimeSetListener.onTimeSet(mTimePicker, mTimePicker.getCurrentHour(),
                                mTimePicker.getCurrentMinute());
                    }
                    TimePickerDialog.this.onClick(TimePickerDialog.this, BUTTON_POSITIVE);
                    dismiss();
                }
            }