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

[ALOY-1584] Android: Ti.UI.Toolbar has no click event #853

Merged
merged 6 commits into from Nov 6, 2017

Conversation

ypbnv
Copy link
Contributor

@ypbnv ypbnv commented Oct 11, 2017

JIRA: https://jira.appcelerator.org/browse/ALOY-1584

Description:
'onHomeIconItemsSelected ' was not properly inherited from ActionBar when used from Toolbar.
Properties of ActionBar shared between both components are now extracted as constants to avoid future mismatching.

Test case:
In JIRA ticket.

@ypbnv ypbnv added the bug label Oct 11, 2017
@@ -16,7 +16,7 @@ exports.parse = function(node, state) {
code = '',
xmlStyles = {};
// Properties inherited from ActionBar when Toolbar is passed to the Activity
var inheritedProperties = ['backgroundImage', 'displayHomeAsUp', 'homeButtonEnabled', 'navigationMode', 'onHomeItemSelected'];
var inheritedProperties = [CONST.BACKGROUND_IMAGE, CONST.DISPLAY_HOME_AS_UP, CONST.HOME_BUTTON_ENABLED, CONST.NAVIGATION_MODE, CONST.ON_HOME_ICON_ITEM_SELECTED];
Copy link
Contributor

Choose a reason for hiding this comment

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

Please define CONST.

@feons
Copy link
Contributor

feons commented Oct 17, 2017

@ypbnv, please add a test app for this.

@ypbnv
Copy link
Contributor Author

ypbnv commented Oct 23, 2017

@feons Updated PR. I am not sure if these two files would be sufficient as test app, so if something else is needed - let me know.

@hansemannn hansemannn changed the title [AC-5267] Android: Ti.UI.Toolbar has no click event [ALOY-1584] Android: Ti.UI.Toolbar has no click event Oct 23, 2017
@feons
Copy link
Contributor

feons commented Oct 30, 2017

@ypbnv, in your Alloy repo folder you can use the command node tools/create_generated_code.js ALOY-1584 , it'll create _generated code folder under test/apps/testing/ALOY-1584/, which will be used to confirm by future jake tests that the generated code matches expected code.

@feons
Copy link
Contributor

feons commented Oct 31, 2017

@ypbnv, please move test/apps/ALOY-1584/_generated to test/apps/testing/ALOY-1584/ and remove test/apps/ALOY-1584.

@feons
Copy link
Contributor

feons commented Nov 6, 2017

Tests passed locally. Approved.

@feons feons merged commit ed734eb into tidev:master Nov 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants