FileDocCategorySizeDatePackage
BridgePreferenceInflater.javaAPI DocAndroid 5.1 API1724Thu Mar 12 22:22:44 GMT 2015android.preference

BridgePreferenceInflater

public class BridgePreferenceInflater extends PreferenceInflater

Fields Summary
Constructors Summary
public BridgePreferenceInflater(android.content.Context context, PreferenceManager preferenceManager)

        super(context, preferenceManager);
    
Methods Summary
protected PreferenceonCreateItem(java.lang.String name, android.util.AttributeSet attrs)

        Object viewKey = null;
        BridgeContext bc = null;

        Context context = getContext();
        if (context instanceof BridgeContext) {
            bc = (BridgeContext) context;
        }
        if (attrs instanceof BridgeXmlBlockParser) {
            viewKey = ((BridgeXmlBlockParser) attrs).getViewCookie();
        }

        Preference preference = super.onCreateItem(name, attrs);

        if (viewKey != null && bc != null) {
            bc.addCookie(preference, viewKey);
        }
        return preference;