chore: Follow up android shortcuts

pull/899/head
Krille 2 years ago
parent d2a58422b4
commit 859701e158
No known key found for this signature in database
GPG Key ID: E067ECD60F1A0652

@ -286,7 +286,7 @@ Future<void> _tryPushHelper(
final title = event.room.getLocalizedDisplayname(MatrixLocals(l10n)); final title = event.room.getLocalizedDisplayname(MatrixLocals(l10n));
if (PlatformInfos.isAndroid && messagingStyleInformation == null) { if (PlatformInfos.isAndroid && messagingStyleInformation == null) {
_setShortcut(event, l10n, title, roomAvatarFile); await _setShortcut(event, l10n, title, roomAvatarFile);
} }
await flutterLocalNotificationsPlugin.show( await flutterLocalNotificationsPlugin.show(
@ -302,7 +302,7 @@ Future<void> _tryPushHelper(
/// Creates a shortcut for Android platform but does not block displaying the /// Creates a shortcut for Android platform but does not block displaying the
/// notification. This is optional but provides a nicer view of the /// notification. This is optional but provides a nicer view of the
/// notification popup. /// notification popup.
void _setShortcut( Future<void> _setShortcut(
Event event, Event event,
L10n l10n, L10n l10n,
String title, String title,

@ -669,7 +669,7 @@ packages:
description: description:
path: "." path: "."
ref: HEAD ref: HEAD
resolved-ref: "67158a31e066265ad43463befb57c29ec2cbd77a" resolved-ref: "930c51d56c87a7f8cefdf8c1db52c194baddc37d"
url: "https://github.com/krille-chan/flutter_shortcuts.git" url: "https://github.com/krille-chan/flutter_shortcuts.git"
source: git source: git
version: "1.4.0" version: "1.4.0"

Loading…
Cancel
Save