Android: Try to fix can not set title

This commit is contained in:
2023-09-14 19:35:12 +08:00
parent dfe214009d
commit 0ffc08c624
6 changed files with 11 additions and 7 deletions

View File

@@ -287,7 +287,7 @@ String? _currentTitle;
String? _prefix;
final _titleLog = Logger("Title");
void setCurrentTitle(String title,
void setCurrentTitle(String title, int primaryColor,
{bool isPrefix = false,
bool includePrefix = true,
bool usePrefix = false}) {
@@ -307,7 +307,7 @@ void setCurrentTitle(String title,
});
} else {
SystemChrome.setApplicationSwitcherDescription(
ApplicationSwitcherDescription(label: title))
ApplicationSwitcherDescription(label: title, primaryColor: primaryColor))
.then((_) {
_currentTitle = title;
if (isPrefix) _prefix = title;