Skip to content

Commit

Permalink
fix(android): up button flickering when clicked in NavigationWindow (#…
Browse files Browse the repository at this point in the history
…11003)

The Up button disappears before the Window is actually closed when this is done in a
NavigationWindow's Windows stack.

Fixes TIMOB-27190
  • Loading branch information
ypbnv authored and sgtcoolguy committed Sep 9, 2019
1 parent 34714b8 commit 69dfda5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ public void windowCreated(TiBaseActivity activity, Bundle savedInstanceState)
// Get a reference to the root window in the NavigationWindow.
WindowProxy rootWindowProxy = ((NavigationWindowProxy) this.getNavigationWindow()).getRootWindowProxy();
// If the root window matches this window do not show the Up navigation button.
activity.getSupportActionBar().setDisplayHomeAsUpEnabled(rootWindowProxy != this);
activityProxy.getActionBar().setDisplayHomeAsUp(rootWindowProxy != this);
}

// Handle barColor property.
Expand Down

0 comments on commit 69dfda5

Please sign in to comment.