fix: pincode functionality
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:kooltab2/utils/app_update_util.dart';
|
||||
import 'package:ota_update/ota_update.dart';
|
||||
@@ -8,6 +10,7 @@ class UpdateChecker {
|
||||
static bool _hasChecked = false;
|
||||
|
||||
static Future<void> check(BuildContext context) async {
|
||||
if (!Platform.isAndroid) return;
|
||||
if (_hasChecked) {
|
||||
debugPrint("Update already checked this boot");
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user