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 11264: Fix 'android:back' for tabgroup #3237

Merged
merged 9 commits into from Oct 18, 2012

Conversation

hieupham007
Copy link
Contributor

@ghost ghost assigned joshthecoder Oct 15, 2012
@ayeung
Copy link
Contributor

ayeung commented Oct 17, 2012

@joshthecoder may have a better approach for this ticket, so I'm going to hold off on reviewing.

@@ -56,6 +56,7 @@ public View getContentView() {
Activity tabGroupActivity = ((TabProxy) proxy).getTabGroup().getActivity();
contentView.setActivity(tabGroupActivity);

contentView.getKrollObject().setProxySupport(contentView);
Copy link
Contributor

Choose a reason for hiding this comment

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

We should leave a comment here on what we're doing here, like all other setup stuff we do in this method.

@ayeung
Copy link
Contributor

ayeung commented Oct 17, 2012

Code reviewed, left several comments.

if (event.getAction() == KeyEvent.ACTION_UP) {
window.fireEvent("android:back", null);
window.fireEvent(backEvent, null);
Copy link
Contributor

Choose a reason for hiding this comment

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

We should fire the event only onto the activity. Then forward listeners on the window to the activity proxy in window.js.

@ayeung
Copy link
Contributor

ayeung commented Oct 18, 2012

Code reviewed and functionally tested. Request Accepted

ayeung pushed a commit that referenced this pull request Oct 18, 2012
Timob 11264: Fix 'android:back' for tabgroup
@ayeung ayeung merged commit fe19978 into tidev:master Oct 18, 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

5 participants