Skip to content

Commit

Permalink
fix: do not ask for patches consent before initializing model
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAabedKhan committed Sep 30, 2023
1 parent 2e8e3b0 commit 1e8d8f7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/ui/views/home/home_viewmodel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,10 @@ class HomeViewModel extends BaseViewModel {
File? downloadedApk;

Future<void> initialize(BuildContext context) async {
_latestManagerVersion = await _managerAPI.getLatestManagerVersion();
if (!_managerAPI.getPatchesConsent()) {
await showPatchesConsent(context);
}

_latestManagerVersion = await _managerAPI.getLatestManagerVersion();
await _patcherAPI.initialize();
await flutterLocalNotificationsPlugin.initialize(
const InitializationSettings(
Expand Down

0 comments on commit 1e8d8f7

Please sign in to comment.