Skip to content

Commit 6cf4ae9

Browse files
committed
Upload file
1 parent 5c4ce3a commit 6cf4ae9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

krscript/src/main/java/com/omarea/krscript/ui/ParamsAppChooserRender.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ class ParamsAppChooserRender(
149149
val apps = pm.getInstalledApplications(PackageManager.MATCH_ALL)
150150

151151
val result = HashMap<String, AdapterAppChooser.AppInfo>(apps.size)
152-
val batch = ArrayList<AdapterAppChooser.AppInfo>(10)
152+
val batch = ArrayList<AdapterAppChooser.AppInfo>(20)
153153

154154
for ((index, app) in apps.withIndex()) {
155155
val pkg = app.packageName
@@ -164,7 +164,7 @@ class ParamsAppChooserRender(
164164
}
165165

166166
// đổ batch
167-
if (batch.size == 10 || index == apps.lastIndex) {
167+
if (batch.size == 20 || index == apps.lastIndex) {
168168
val copy = ArrayList(batch)
169169
batch.clear()
170170

0 commit comments

Comments
 (0)