Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-28371] Android: Window title is not applied if Window is inside a TabGroup (parity)

GitHub Issuen/a
TypeBug
PriorityMedium
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 9.3.2, Release 10.0.0
Fix Version/sn/a
ComponentsAndroid
Labelsn/a
ReporterHans Knöchel
AssigneeUnknown
Created2021-02-25T10:33:19.000+0000
Updated2021-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();

Comments

  1. Michael Gangolf 2021-02-25

    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 :)

JSON Source