diff --git a/build.gradle b/build.gradle index b523f3278..63dcbd964 100644 --- a/build.gradle +++ b/build.gradle @@ -7,7 +7,7 @@ buildscript { propMinSdkVersion = 21 propTargetSdkVersion = propCompileSdkVersion propVersionCode = 1 - propVersionName = '5.28.18' + propVersionName = '5.28.19' kotlin_version = '1.3.72' } diff --git a/commons/src/main/kotlin/com/simplemobiletools/commons/adapters/ManageBlockedNumbersAdapter.kt b/commons/src/main/kotlin/com/simplemobiletools/commons/adapters/ManageBlockedNumbersAdapter.kt index 147bfbdf0..efd4838af 100644 --- a/commons/src/main/kotlin/com/simplemobiletools/commons/adapters/ManageBlockedNumbersAdapter.kt +++ b/commons/src/main/kotlin/com/simplemobiletools/commons/adapters/ManageBlockedNumbersAdapter.kt @@ -18,13 +18,13 @@ class ManageBlockedNumbersAdapter(activity: BaseSimpleActivity, var blockedNumbe setupDragListener(true) } - override fun getActionMenuId() = R.menu.cab_remove_only + override fun getActionMenuId() = R.menu.cab_delete_only override fun prepareActionMode(menu: Menu) {} override fun actionItemPressed(id: Int) { when (id) { - R.id.cab_remove -> removeSelection() + R.id.cab_delete -> deleteSelection() } } @@ -64,16 +64,16 @@ class ManageBlockedNumbersAdapter(activity: BaseSimpleActivity, var blockedNumbe } } - private fun removeSelection() { - val removeBlockedNumbers = ArrayList(selectedKeys.size) + private fun deleteSelection() { + val deleteBlockedNumbers = ArrayList(selectedKeys.size) val positions = getSelectedItemPositions() getSelectedItems().forEach { - removeBlockedNumbers.add(it) + deleteBlockedNumbers.add(it) activity.deleteBlockedNumber(it.number) } - blockedNumbers.removeAll(removeBlockedNumbers) + blockedNumbers.removeAll(deleteBlockedNumbers) removeSelectedItems(positions) if (blockedNumbers.isEmpty()) { listener?.refreshItems()