Skip to content

Commit

Permalink
Update settings_require_suggested_app_version.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminHalko authored and Ushie committed Nov 22, 2023
1 parent 8cb26f1 commit 98485d1
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'package:flutter/material.dart';
import 'package:flutter_i18n/widgets/I18nText.dart';
import 'package:revanced_manager/services/haptics.dart';
import 'package:revanced_manager/ui/views/settings/settings_viewmodel.dart';

class SRequireSuggestedAppVersion extends StatefulWidget {
Expand Down Expand Up @@ -29,6 +30,7 @@ class _SRequireSuggestedAppVersionState extends State<SRequireSuggestedAppVersio
subtitle: I18nText('settingsView.requireSuggestedAppVersionHint'),
value: _settingsViewModel.isRequireSuggestedAppVersionEnabled(),
onChanged: (value) async {
hapticSwitch(value);
await _settingsViewModel.showRequireSuggestedAppVersionDialog(context, value,);
setState(() {});
},
Expand Down

0 comments on commit 98485d1

Please sign in to comment.