package com.dhian.systemui;

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

public class NavishaEditTextPreference extends EditTextPreference {

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

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

    // According to ListPreference implementation
    @Override
    public CharSequence getSummary() {
        String text = getText();
        if (TextUtils.isEmpty(text)) {
            return getEditText().getHint();
        } else {
            CharSequence summary = super.getSummary();
            if (summary != null) {
                return String.format(summary.toString(), text);
            } else {
                return null;
            }
        }
    }
}


Update and rename src/com/dhian/systemui to src/com/dhian/systemui/NavishaEditTextPreference.java