diff --git a/lib/utils/android_file_utils.dart b/lib/utils/android_file_utils.dart index 0c57ca95f..8c557d716 100644 --- a/lib/utils/android_file_utils.dart +++ b/lib/utils/android_file_utils.dart @@ -40,9 +40,11 @@ class AndroidFileUtils { } Future initAppNames() async { - _packages = await AndroidAppService.getPackages(); - _potentialAppDirs = _launcherPackages.expand((package) => package.potentialDirs).toList(); - appNameChangeNotifier.notifyListeners(); + if (_packages.isEmpty) { + _packages = await AndroidAppService.getPackages(); + _potentialAppDirs = _launcherPackages.expand((package) => package.potentialDirs).toList(); + appNameChangeNotifier.notifyListeners(); + } } bool isCameraPath(String path) => path.startsWith(dcimPath) && (path.endsWith('${separator}Camera') || path.endsWith('${separator}100ANDRO'));