mirror of
https://github.com/TeamAmaze/AmazeFileManager.git
synced 2026-10-17 05:08:00 +08:00
Null check of ApplicationInfo.sourceDir
Fixes #1604. Also changed back test forkEvery settings to last known working value. Slower, but works.
This commit is contained in:
@@ -75,6 +75,9 @@ public class AppListLoader extends AsyncTaskLoader<AppListLoader.AppsDataPair> {
|
||||
mApps = new AppsDataPair(new ArrayList<>(apps.size()), new ArrayList<>(apps.size()));
|
||||
|
||||
for (ApplicationInfo object : apps) {
|
||||
if (object.sourceDir == null) {
|
||||
continue;
|
||||
}
|
||||
File sourceDir = new File(object.sourceDir);
|
||||
|
||||
String label = object.loadLabel(packageManager).toString();
|
||||
|
||||
+2
-3
@@ -32,10 +32,9 @@ allprojects {
|
||||
mavenCentral()
|
||||
}
|
||||
tasks.withType(Test) {
|
||||
maxParallelForks = 4
|
||||
maxParallelForks = 2
|
||||
maxHeapSize = "4g"
|
||||
forkEvery = 4
|
||||
}
|
||||
forkEvery = 2 }
|
||||
}
|
||||
|
||||
spotless {
|
||||
|
||||
Reference in New Issue
Block a user