Loading build.gradle +1 −1 Original line number Diff line number Diff line Loading @@ -7,7 +7,7 @@ buildscript { propMinSdkVersion = 16 propTargetSdkVersion = propCompileSdkVersion propVersionCode = 1 propVersionName = '4.2.8' propVersionName = '4.2.10' kotlin_version = '1.2.50' support_libs = '27.1.1' } Loading commons/src/main/kotlin/com/simplemobiletools/commons/adapters/FilepickerItemsAdapter.kt +2 −0 Original line number Diff line number Diff line Loading @@ -51,6 +51,8 @@ class FilepickerItemsAdapter(activity: BaseSimpleActivity, val fileDirItems: Lis override fun getSelectableItemCount() = fileDirItems.size override fun getIsItemSelectable(position: Int) = false override fun onViewRecycled(holder: MyRecyclerViewAdapter.ViewHolder) { super.onViewRecycled(holder) if (!activity.isActivityDestroyed()) { Loading commons/src/main/kotlin/com/simplemobiletools/commons/adapters/MyRecyclerViewAdapter.kt +10 −2 Original line number Diff line number Diff line Loading @@ -49,9 +49,15 @@ abstract class MyRecyclerViewAdapter(val activity: BaseSimpleActivity, val recyc abstract fun getSelectableItemCount(): Int abstract fun getIsItemSelectable(position: Int): Boolean protected fun isOneItemSelected() = selectedPositions.size == 1 protected fun toggleItemSelection(select: Boolean, pos: Int) { if (select && !getIsItemSelectable(pos)) { return } if (select) { if (viewHolders[pos] != null) { prepareItemSelection(viewHolders[pos]) Loading Loading @@ -85,9 +91,11 @@ abstract class MyRecyclerViewAdapter(val activity: BaseSimpleActivity, val recyc protected fun selectAll() { val cnt = itemCount - positionOffset for (i in 0 until cnt) { if (getIsItemSelectable(i)) { selectedPositions.add(i) notifyItemChanged(i + positionOffset) } } updateTitle(cnt) lastLongPressedItem = -1 } Loading commons/src/main/res/values-nl/strings.xml +1 −1 Original line number Diff line number Diff line Loading @@ -19,7 +19,7 @@ <!-- Favorites --> <string name="favorites">Favorieten</string> <string name="add_favorites">Add favorites</string> <string name="add_favorites">Favorieten toevoegen</string> <string name="add_to_favorites">Aan favorieten toevoegen</string> <string name="remove_from_favorites">Uit favorieten verwijderen</string> Loading commons/src/main/res/values-pt-rBR/strings.xml +115 −116 File changed.Preview size limit exceeded, changes collapsed. Show changes Loading
build.gradle +1 −1 Original line number Diff line number Diff line Loading @@ -7,7 +7,7 @@ buildscript { propMinSdkVersion = 16 propTargetSdkVersion = propCompileSdkVersion propVersionCode = 1 propVersionName = '4.2.8' propVersionName = '4.2.10' kotlin_version = '1.2.50' support_libs = '27.1.1' } Loading
commons/src/main/kotlin/com/simplemobiletools/commons/adapters/FilepickerItemsAdapter.kt +2 −0 Original line number Diff line number Diff line Loading @@ -51,6 +51,8 @@ class FilepickerItemsAdapter(activity: BaseSimpleActivity, val fileDirItems: Lis override fun getSelectableItemCount() = fileDirItems.size override fun getIsItemSelectable(position: Int) = false override fun onViewRecycled(holder: MyRecyclerViewAdapter.ViewHolder) { super.onViewRecycled(holder) if (!activity.isActivityDestroyed()) { Loading
commons/src/main/kotlin/com/simplemobiletools/commons/adapters/MyRecyclerViewAdapter.kt +10 −2 Original line number Diff line number Diff line Loading @@ -49,9 +49,15 @@ abstract class MyRecyclerViewAdapter(val activity: BaseSimpleActivity, val recyc abstract fun getSelectableItemCount(): Int abstract fun getIsItemSelectable(position: Int): Boolean protected fun isOneItemSelected() = selectedPositions.size == 1 protected fun toggleItemSelection(select: Boolean, pos: Int) { if (select && !getIsItemSelectable(pos)) { return } if (select) { if (viewHolders[pos] != null) { prepareItemSelection(viewHolders[pos]) Loading Loading @@ -85,9 +91,11 @@ abstract class MyRecyclerViewAdapter(val activity: BaseSimpleActivity, val recyc protected fun selectAll() { val cnt = itemCount - positionOffset for (i in 0 until cnt) { if (getIsItemSelectable(i)) { selectedPositions.add(i) notifyItemChanged(i + positionOffset) } } updateTitle(cnt) lastLongPressedItem = -1 } Loading
commons/src/main/res/values-nl/strings.xml +1 −1 Original line number Diff line number Diff line Loading @@ -19,7 +19,7 @@ <!-- Favorites --> <string name="favorites">Favorieten</string> <string name="add_favorites">Add favorites</string> <string name="add_favorites">Favorieten toevoegen</string> <string name="add_to_favorites">Aan favorieten toevoegen</string> <string name="remove_from_favorites">Uit favorieten verwijderen</string> Loading
commons/src/main/res/values-pt-rBR/strings.xml +115 −116 File changed.Preview size limit exceeded, changes collapsed. Show changes