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

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

No files matched your search

+20
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>
@@ -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',