[TIMOB-28371] Android: Window title is not applied if Window is inside a TabGroup (parity)
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Open |
Resolution | Unresolved |
Affected Version/s | Release 9.3.2, Release 10.0.0 |
Fix Version/s | n/a |
Components | Android |
Labels | n/a |
Reporter | Hans Knöchel |
Assignee | Unknown |
Created | 2021-02-25T10:33:19.000+0000 |
Updated | 2021-02-25T19:01:46.000+0000 |
Description
This is something that bugs me since forever. On Android, setting the
title
property on a window that is inside a tabgroup does not work and instead, the name of the app is displayed. Yes, there are hacks to manually change the title on focus/blur, but for parity with iOS and the fact that Google does the same these days, Titanium should be able to do this under the hood. Huge improvement!
Test case:
Ti.UI.createTabGroup({
tabs: [
Ti.UI.createTab({ window: Ti.UI.createWindow({ title: 'Page 1 }), title: 'Page 1' }),
Ti.UI.createTab({ window: Ti.UI.createWindow({ title: 'Page 2 }), title: 'Page 2' })
]
}).open();
https://github.com/appcelerator/titanium_mobile/pull/12499 Make sure to set
autoTabTitle: true
on the TabGroup. Default is false so it won't change existing apps in case you don't want to have it :)