mirror of
https://github.com/SimpleMobileTools/Simple-App-Launcher.git
synced 2025-06-05 21:49:21 +02:00
make a listener non nullable
This commit is contained in:
parent
397ef6d4ec
commit
6e36acc19e
@ -29,7 +29,7 @@ import java.util.*
|
|||||||
class LaunchersAdapter(
|
class LaunchersAdapter(
|
||||||
activity: SimpleActivity,
|
activity: SimpleActivity,
|
||||||
val launchers: ArrayList<AppLauncher>,
|
val launchers: ArrayList<AppLauncher>,
|
||||||
val listener: RefreshRecyclerViewListener?,
|
val listener: RefreshRecyclerViewListener,
|
||||||
recyclerView: MyRecyclerView,
|
recyclerView: MyRecyclerView,
|
||||||
itemClick: (Any) -> Unit
|
itemClick: (Any) -> Unit
|
||||||
) : MyRecyclerViewAdapter(activity, recyclerView, itemClick), ItemTouchHelperContract, RecyclerViewFastScroller.OnPopupTextUpdate {
|
) : MyRecyclerViewAdapter(activity, recyclerView, itemClick), ItemTouchHelperContract, RecyclerViewFastScroller.OnPopupTextUpdate {
|
||||||
@ -128,7 +128,7 @@ class LaunchersAdapter(
|
|||||||
private fun showEditDialog() {
|
private fun showEditDialog() {
|
||||||
EditDialog(activity, getItemWithKey(selectedKeys.first())!!) {
|
EditDialog(activity, getItemWithKey(selectedKeys.first())!!) {
|
||||||
finishActMode()
|
finishActMode()
|
||||||
listener?.refreshItems()
|
listener.refreshItems()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user