mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-07-16 22:56:44 +02:00
Minor bug: avoid showing empty dialog when notifications tapped (#2250)
This commit is contained in:
@ -197,6 +197,7 @@ class NotificationsProvider {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_showNotificationPayload(String? payload, {bool doublePop = false}) {
|
_showNotificationPayload(String? payload, {bool doublePop = false}) {
|
||||||
|
if (payload?.isNotEmpty == true) {
|
||||||
var title = (payload ?? '\n\n').split('\n').first;
|
var title = (payload ?? '\n\n').split('\n').first;
|
||||||
var content = (payload ?? '\n\n').split('\n').sublist(1).join('\n');
|
var content = (payload ?? '\n\n').split('\n').sublist(1).join('\n');
|
||||||
globalNavigatorKey.currentState?.push(
|
globalNavigatorKey.currentState?.push(
|
||||||
@ -218,6 +219,7 @@ class NotificationsProvider {
|
|||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Future<void> cancel(int id) async {
|
Future<void> cancel(int id) async {
|
||||||
if (!isInitialized) {
|
if (!isInitialized) {
|
||||||
|
Reference in New Issue
Block a user