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

Commit a4713078 authored by Christian Mehlmauer's avatar Christian Mehlmauer
Browse files

Replaced deprecated calls to setButton and setButton2

Change-Id: Ifcc3f3afc1689406a3298dab7b00a8edb83c115e
parent dd1880ee
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 =