minor change

This commit is contained in:
Thibault Deckers 2021-08-08 12:35:12 +09:00
parent 7ea309de91
commit 6b9ead5139

View file

@ -40,9 +40,11 @@ class AndroidFileUtils {
}
Future<void> 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'));