feat: add URL and intent queries to Android manifest and refresh notification list after marking all as read

This commit is contained in:
pradeepkumar
2026-03-31 16:00:48 +05:30
parent a96a7b84d8
commit 548c822f89
2 changed files with 26 additions and 2 deletions

View File

@@ -72,5 +72,25 @@
<action android:name="android.intent.action.PROCESS_TEXT"/>
<data android:mimeType="text/plain"/>
</intent>
<intent>
<action android:name="android.intent.action.VIEW"/>
<data android:scheme="https"/>
</intent>
<intent>
<action android:name="android.intent.action.VIEW"/>
<data android:scheme="http"/>
</intent>
<intent>
<action android:name="android.intent.action.VIEW"/>
<data android:scheme="tel"/>
</intent>
<intent>
<action android:name="android.intent.action.VIEW"/>
<data android:scheme="mailto"/>
</intent>
<intent>
<action android:name="android.intent.action.VIEW"/>
<data android:scheme="geo"/>
</intent>
</queries>
</manifest>

View File

@@ -93,10 +93,14 @@ class _NotificationsScreenState extends ConsumerState<NotificationsScreen> {
}),
const Spacer(),
GestureDetector(
onTap: () {
ref
onTap: () async {
await ref
.read(notificationListProvider.notifier)
.markAllAsRead();
// Reload current filter to reflect changes
ref
.read(notificationListProvider.notifier)
.loadNotifications(filter: _activeFilter);
},
child: const Text(
'Mark all as read',