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