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-6844 (1_8_X): Android: UI - hardware button events not fired for heavyweight windows in tabGroups #1090

Merged
merged 1 commit into from Dec 22, 2011
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -124,7 +124,13 @@ public void fillIntentForTab(Intent intent)
@Override
public void windowCreated(TiBaseActivity activity)
{
// This is the callback when a window associated with a tab is created.
// Since TiUIActivityWindow.bindProxies isn't called here,
// we call setWindowProxy directly to make sure the activity->window
// association is correctly initialized.
activity.setWindowProxy(ActivityWindowProxy.this);
view = new TiUIActivityWindow(ActivityWindowProxy.this, activity);

realizeViews(view);
opened = true;
fireEvent(TiC.EVENT_OPEN, null);
Expand Down
Expand Up @@ -133,6 +133,9 @@ protected void createNewActivity(HashMap options)

public void windowCreated(TiBaseActivity activity)
{
// This is the callback when any "heavy weight" (i.e. activity) window
// (except for windows associated with a tab) is created.

windowActivity = activity;
proxy.setActivity(activity);
bindProxies();
Expand Down