mirror of
https://github.com/lifegpc/eh_downloader_flutter.git
synced 2026-06-06 05:49:03 +08:00
Android: Try to fix can not set title
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user