Loading commons/src/main/kotlin/com/simplemobiletools/commons/adapters/MyRecyclerViewAdapter.kt +5 −1 Original line number Diff line number Diff line Loading @@ -196,7 +196,11 @@ abstract class MyRecyclerViewAdapter(val activity: BaseSimpleActivity, val recyc lastLongPressedItem = if (lastLongPressedItem == -1) { position } else { selectItemRange(lastLongPressedItem, position, Math.min(lastLongPressedItem, position), Math.max(lastLongPressedItem, position)) val min = Math.min(lastLongPressedItem, position) val max = Math.max(lastLongPressedItem, position) for (i in min..max) { toggleItemSelection(true, i) } -1 } } Loading commons/src/main/kotlin/com/simplemobiletools/commons/dialogs/SecurityDialog.kt +1 −1 Original line number Diff line number Diff line Loading @@ -79,7 +79,7 @@ class SecurityDialog(val activity: Activity, val requiredHash: String, val showT dialog = AlertDialog.Builder(activity) .setOnCancelListener { onCancelFail() } .setNegativeButton(R.string.cancel, { dialog, which -> onCancelFail() }) .setNegativeButton(R.string.cancel) { dialog, which -> onCancelFail() } .create().apply { activity.setupDialogStuff(view, this) } Loading Loading
commons/src/main/kotlin/com/simplemobiletools/commons/adapters/MyRecyclerViewAdapter.kt +5 −1 Original line number Diff line number Diff line Loading @@ -196,7 +196,11 @@ abstract class MyRecyclerViewAdapter(val activity: BaseSimpleActivity, val recyc lastLongPressedItem = if (lastLongPressedItem == -1) { position } else { selectItemRange(lastLongPressedItem, position, Math.min(lastLongPressedItem, position), Math.max(lastLongPressedItem, position)) val min = Math.min(lastLongPressedItem, position) val max = Math.max(lastLongPressedItem, position) for (i in min..max) { toggleItemSelection(true, i) } -1 } } Loading
commons/src/main/kotlin/com/simplemobiletools/commons/dialogs/SecurityDialog.kt +1 −1 Original line number Diff line number Diff line Loading @@ -79,7 +79,7 @@ class SecurityDialog(val activity: Activity, val requiredHash: String, val showT dialog = AlertDialog.Builder(activity) .setOnCancelListener { onCancelFail() } .setNegativeButton(R.string.cancel, { dialog, which -> onCancelFail() }) .setNegativeButton(R.string.cancel) { dialog, which -> onCancelFail() } .create().apply { activity.setupDialogStuff(view, this) } Loading