Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Listeners are not working? #23

Open
jbrulmans opened this issue Mar 24, 2016 · 1 comment
Open

Listeners are not working? #23

jbrulmans opened this issue Mar 24, 2016 · 1 comment

Comments

@jbrulmans
Copy link

I can't seem to get any listeners working with this library. Is there a fix for this? Or a certain workaround? Maybe anybody else has a solution?

@KnIfER
Copy link

KnIfER commented Jun 10, 2018

in fragment:

    @Override
    public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen,
            Preference p) {
    	CMN.show("onPreferenceTreeClick"+p.getSummary());
    	//p.setonXXXlisteners??     not necessary to me
		return false;
    }

to fetch values througout application:

CMN.show(""+PreferenceManager.getDefaultSharedPreferences(context).getBoolean("wireless_network", false));

where "wireless_network" is the key name set in .xml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@jbrulmans @KnIfER and others