aboutsummaryrefslogtreecommitdiff
path: root/WordPress/src/main/java/org/wordpress/android/widgets/WPEditTextPreference.java
blob: 108764c9f779fe15a4b9ac771cea20c4f17d5562 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package org.wordpress.android.widgets;

import android.content.Context;
import android.preference.EditTextPreference;
import android.util.AttributeSet;

public class WPEditTextPreference extends EditTextPreference {
    public WPEditTextPreference(Context context) {
        super(context);
    }

    public WPEditTextPreference(Context context, AttributeSet attrs, int defStyle) {
        super(context, attrs, defStyle);
    }

    public WPEditTextPreference(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    @Override
    protected void onDialogClosed(boolean positiveResult) {
        super.onDialogClosed(positiveResult);
        if (!positiveResult) {
            callChangeListener(null);
        }
    }
}