chore: Follow up android shortcuts
This commit is contained in:
parent
d2a58422b4
commit
859701e158
2 changed files with 3 additions and 3 deletions
|
|
@ -286,7 +286,7 @@ Future<void> _tryPushHelper(
|
|||
final title = event.room.getLocalizedDisplayname(MatrixLocals(l10n));
|
||||
|
||||
if (PlatformInfos.isAndroid && messagingStyleInformation == null) {
|
||||
_setShortcut(event, l10n, title, roomAvatarFile);
|
||||
await _setShortcut(event, l10n, title, roomAvatarFile);
|
||||
}
|
||||
|
||||
await flutterLocalNotificationsPlugin.show(
|
||||
|
|
@ -302,7 +302,7 @@ Future<void> _tryPushHelper(
|
|||
/// Creates a shortcut for Android platform but does not block displaying the
|
||||
/// notification. This is optional but provides a nicer view of the
|
||||
/// notification popup.
|
||||
void _setShortcut(
|
||||
Future<void> _setShortcut(
|
||||
Event event,
|
||||
L10n l10n,
|
||||
String title,
|
||||
|
|
|
|||
|
|
@ -669,7 +669,7 @@ packages:
|
|||
description:
|
||||
path: "."
|
||||
ref: HEAD
|
||||
resolved-ref: "67158a31e066265ad43463befb57c29ec2cbd77a"
|
||||
resolved-ref: "930c51d56c87a7f8cefdf8c1db52c194baddc37d"
|
||||
url: "https://github.com/krille-chan/flutter_shortcuts.git"
|
||||
source: git
|
||||
version: "1.4.0"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue