feat: add URL and intent queries to Android manifest and refresh notification list after marking all as read
This commit is contained in:
@@ -72,5 +72,25 @@
|
|||||||
<action android:name="android.intent.action.PROCESS_TEXT"/>
|
<action android:name="android.intent.action.PROCESS_TEXT"/>
|
||||||
<data android:mimeType="text/plain"/>
|
<data android:mimeType="text/plain"/>
|
||||||
</intent>
|
</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>
|
</queries>
|
||||||
</manifest>
|
</manifest>
|
||||||
|
|||||||
@@ -93,10 +93,14 @@ class _NotificationsScreenState extends ConsumerState<NotificationsScreen> {
|
|||||||
}),
|
}),
|
||||||
const Spacer(),
|
const Spacer(),
|
||||||
GestureDetector(
|
GestureDetector(
|
||||||
onTap: () {
|
onTap: () async {
|
||||||
ref
|
await ref
|
||||||
.read(notificationListProvider.notifier)
|
.read(notificationListProvider.notifier)
|
||||||
.markAllAsRead();
|
.markAllAsRead();
|
||||||
|
// Reload current filter to reflect changes
|
||||||
|
ref
|
||||||
|
.read(notificationListProvider.notifier)
|
||||||
|
.loadNotifications(filter: _activeFilter);
|
||||||
},
|
},
|
||||||
child: const Text(
|
child: const Text(
|
||||||
'Mark all as read',
|
'Mark all as read',
|
||||||
|
|||||||
Reference in New Issue
Block a user