Skip to content

Commit

Permalink
chore: open notify app list page on click open notify
Browse files Browse the repository at this point in the history
  • Loading branch information
lawnvi committed Jun 13, 2024
1 parent 3449bbc commit 1345982
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/page/deviceList.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1241,6 +1241,16 @@ class _SettingsScreen extends State<SettingsScreen> {
if (Platform.isAndroid && WsSvrManager().receiver.isNotEmpty) {
value? startAndroidListening(): stopAndroidListening();
}
if (value && (await LocalSetting().listenAppNotifyList()).isEmpty) {
await Navigator.push(
context,
MaterialPageRoute(
builder: (context) => const AppListScreen(),
),
);
// 更新允许通知的apps
DeviceListScreen.setListenApps();
}
},
),
),
Expand Down

0 comments on commit 1345982

Please sign in to comment.