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

[TC-1426] Better way of handling property change. Especially this will work with T... #3309

Closed
wants to merge 1 commit into from

Conversation

farfromrefug
Copy link
Contributor

...i.UI.android.openPreferences()
jira ticket

@ghost ghost assigned pingwang2011 Nov 7, 2012
public void onSharedPreferenceChanged(SharedPreferences prefs,String key) {
KrollDict result = new KrollDict();
result.put("property", key);
fireEvent(TiC.EVENT_CHANGE, result);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Android and iOS did not have the "property" property associated with "change" event before. Why do you add this property here?

@pingwang2011
Copy link
Contributor

In the test case in JIRA, it does not call Ti.UI.Android.openPreferences(). But the in the ticket description, you said "Ti.App.Properties.addEventListener('change', onChange) should support Ti.UI.Android.openPreferences". Did you miss something in the test case to test this new feature?

@farfromrefug
Copy link
Contributor Author

Yes i think i was too lazy at the time, and i didnt do an openPreferences nor produced a preferences.xml
Will add one right away

@pingwang2011
Copy link
Contributor

Hi farfromrefug, we are trying to clean up the PR queue. This PR is sitting here for a long time without any update. If you can not address the comments in this week, we will close it.

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

Successfully merging this pull request may close these issues.

None yet

2 participants