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

Commit 0d47ac11 authored by Jim Miller's avatar Jim Miller Committed by Android (Google) Code Review
Browse files

Merge "Fix 3419077: Allow subclasses to change SeekBarPreference action buttons." into honeycomb

parents 4ce0cad1 4c8aafe3
Loading
Loading
Loading
Loading
+10 −5
Original line number Diff line number Diff line
@@ -36,14 +36,19 @@ public class SeekBarPreference extends DialogPreference {
        super(context, attrs);

        setDialogLayoutResource(com.android.internal.R.layout.seekbar_dialog);
        setPositiveButtonText(android.R.string.ok);
        setNegativeButtonText(android.R.string.cancel);
        createActionButtons();

        // Steal the XML dialogIcon attribute's value
        mMyIcon = getDialogIcon();
        setDialogIcon(null);
    }

    // Allow subclasses to override the action buttons
    public void createActionButtons() {
        setPositiveButtonText(android.R.string.ok);
        setNegativeButtonText(android.R.string.cancel);
    }

    @Override
    protected void onBindDialogView(View view) {
        super.onBindDialogView(view);