I have a couple of custom DialogPreference
implementations floating around, such as this one:
package apt.tutorial;
import android.content.Cont
The solution which helped me:
I have replaced
public TimePreference(Context ctxt, AttributeSet attrs) {
this(ctxt, attrs, 0);
}
with
public TimePreference(Context ctxt, AttributeSet attrs) {
this(ctxt, attrs, ctxt.getResources().getSystem().getIdentifier("dialogPreferenceStyle", "attr", "android"));
}
As you can see, I replaced third argument 0 with ctxt.getResources().getSystem().getIdentifier("dialogPreferenceStyle", "attr", "android") in the second constructor of custom preference class.