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

Commit 87497936 authored by The Android Open Source Project's avatar The Android Open Source Project Committed by Android Git Automerger
Browse files

am 27dfb307: merge from open-source master

Merge commit '27dfb307'

* commit '27dfb307':
  Replaced deprecated calls to setButton and setButton2
parents 18814b4c 27dfb307
Loading
Loading
Loading
Loading
+14 −13
Original line number Diff line number Diff line
@@ -99,8 +99,9 @@ public class TimePickerDialog extends AlertDialog implements OnClickListener,
        mCalendar = Calendar.getInstance();
        updateTitle(mInitialHourOfDay, mInitialMinute);

        setButton(context.getText(R.string.date_time_set), this);
        setButton2(context.getText(R.string.cancel), (OnClickListener) null);
        setButton(BUTTON_POSITIVE, context.getText(R.string.date_time_set), this);
        setButton(BUTTON_NEGATIVE, context.getText(R.string.cancel),
                (OnClickListener) null);
        setIcon(R.drawable.ic_dialog_time);

        LayoutInflater inflater =