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

Timob 11601: Android: Expose ActionBar methods #3387

Merged
merged 10 commits into from Nov 13, 2012

Conversation

ayeung
Copy link
Contributor

@ayeung ayeung commented Nov 7, 2012

http://jira.appcelerator.org/browse/TIMOB-11601

The test cases are in Jira. Please go through each subtask and run the test cases there.

@iotashan
Copy link

iotashan commented Nov 7, 2012

The documentation has a mistake, I think. The "logo" property isn't a background image for the bar, right?

name: logo
summary: Background image for the action bar, specified as a local file path or URL.

@arthurevans
Copy link
Contributor

Yep, I think that should be something like 'Sets the application logo displayed in the "home" area of the action bar.'

I think if we expose logo, we should expose icon as well--in some circumstances, Android replaces the logo with the icon (for example, if you go into the YouTube app and expand and collapse the search widget, you'll see the wide "YouTube" logo get replaced with the narrower YouTube icon.

Exposed ability to set the icon on the action bar.
@ayeung
Copy link
Contributor Author

ayeung commented Nov 7, 2012

Good catch. I've updated the docs, and also added the ability to set the icon as well on the action bar.

@ghost ghost assigned billdawson Nov 12, 2012
@billdawson
Copy link
Contributor

Needs master merged into it and re-push.

Functional review failed. Complete results:

test case for 11642 fails: no log message for click event.

test case for 11643 fails: Runtime error on startup: "Object # has no method 'setDisplayHomeAsUpEnabled".

test case for 11644 succeeds.

test case for 11645 succeeds.

test case for 11646 succeeds.

test case for 11648 succeeds.

Will wait till further code changes (to address above) before CR'ing.

if (actionBarProxy != null) {
KrollFunction onHomeIconItemSelected = (KrollFunction) actionBarProxy
.getProperty(TiC.PROPERTY_ON_HOME_ICON_ITEM_SELECTED);
KrollDict event = new KrollDict();
Copy link
Contributor

Choose a reason for hiding this comment

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

This and the next line: shouldn't they (can't they) be executed only if the actionBarProxy is not null? To save cycles.

@billdawson
Copy link
Contributor

CR/FR accepted. (One minor quibble in the CR, but it's not enough to hold this up.) If @arthurevans is okay with the docs, I'd like to merge asap so we can move on to the 3.0 backport which, if it tests out okay, should be merged today.

@billdawson
Copy link
Contributor

BTW, validate.py and docgen.py were fine.

@billdawson
Copy link
Contributor

Going to go ahead and merge, since we merged the 3.0.X equivalent.

billdawson added a commit that referenced this pull request Nov 13, 2012
Timob 11601: Android: Expose ActionBar methods
@billdawson billdawson merged commit 3f990a4 into tidev:master Nov 13, 2012
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

4 participants