Skip to content

Commit 69dfda5

Browse files
ypbnvsgtcoolguy
authored andcommitted
fix(android): up button flickering when clicked in NavigationWindow (#11003)
The Up button disappears before the Window is actually closed when this is done in a NavigationWindow's Windows stack. Fixes TIMOB-27190
1 parent 34714b8 commit 69dfda5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

android/modules/ui/src/java/ti/modules/titanium/ui/WindowProxy.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ public void windowCreated(TiBaseActivity activity, Bundle savedInstanceState)
311311
// Get a reference to the root window in the NavigationWindow.
312312
WindowProxyrootWindowProxy = ((NavigationWindowProxy) this.getNavigationWindow()).getRootWindowProxy();
313313
// If the root window matches this window do not show the Up navigation button.
314-
activity.getSupportActionBar().setDisplayHomeAsUpEnabled(rootWindowProxy != this);
314+
activityProxy.getActionBar().setDisplayHomeAsUp(rootWindowProxy != this);
315315
}
316316

317317
// Handle barColor property.

0 commit comments

Comments
 (0)
close