minor change
This commit is contained in:
parent
7ea309de91
commit
6b9ead5139
1 changed files with 5 additions and 3 deletions
|
@ -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'));
|
||||
|
|
Loading…
Reference in a new issue