treewide: Resolve compilation warnings (#2859)
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>master
parent
db2eba9762
commit
7d9c8726c5
|
@ -78,7 +78,7 @@ class CollectionCreationUIView(
|
|||
}
|
||||
}
|
||||
|
||||
view.name_collection_edittext.setOnEditorActionListener { v, actionId, event ->
|
||||
view.name_collection_edittext.setOnEditorActionListener { v, actionId, _ ->
|
||||
if (actionId == EditorInfo.IME_ACTION_DONE && !v.text.toString().isEmpty()) {
|
||||
when (step) {
|
||||
is SaveCollectionStep.NameCollection -> {
|
||||
|
|
|
@ -148,7 +148,7 @@ class BookmarkAdapter(val emptyView: View, val actionEmitter: Observer<BookmarkA
|
|||
bookmark_separator.visibility = View.GONE
|
||||
bookmark_layout.isClickable = true
|
||||
|
||||
val bookmarkItemMenu = BookmarkItemMenu(containerView!!.context, item) {
|
||||
val bookmarkItemMenu = BookmarkItemMenu(containerView.context, item) {
|
||||
when (it) {
|
||||
is BookmarkItemMenu.Item.Edit -> {
|
||||
actionEmitter.onNext(BookmarkAction.Edit(item))
|
||||
|
|
|
@ -119,7 +119,7 @@ class SelectBookmarkFolderAdapter(private val sharedViewModel: BookmarksSharedVi
|
|||
return if (this != null) {
|
||||
val newList = list.plus(listOf(BookmarkNodeWithDepth(depth, this, this.parentGuid)))
|
||||
newList.plus(
|
||||
children?.filter { it?.type == BookmarkNodeType.FOLDER }
|
||||
children?.filter { it.type == BookmarkNodeType.FOLDER }
|
||||
?.flatMap { it.convertToFolderDepthTree(depth + 1) }
|
||||
?: listOf())
|
||||
} else listOf()
|
||||
|
|
|
@ -46,7 +46,6 @@ class OnboardingRadioButton : RadioButton {
|
|||
updateRadioValue(true)
|
||||
toggleRadioGroups()
|
||||
clickListener?.invoke()
|
||||
true
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -82,11 +82,10 @@ class DeleteBrowsingDataFragment : Fragment(), CoroutineScope {
|
|||
})
|
||||
}
|
||||
|
||||
view?.open_tabs_item?.onCheckListener = { _ -> updateDeleteButton() }
|
||||
view?.browsing_data_item?.onCheckListener = { _ -> updateDeleteButton() }
|
||||
view?.collections_item?.onCheckListener = { _ -> updateDeleteButton() }
|
||||
|
||||
view?.delete_data?.setOnClickListener {
|
||||
view.open_tabs_item?.onCheckListener = { _ -> updateDeleteButton() }
|
||||
view.browsing_data_item?.onCheckListener = { _ -> updateDeleteButton() }
|
||||
view.collections_item?.onCheckListener = { _ -> updateDeleteButton() }
|
||||
view.delete_data?.setOnClickListener {
|
||||
askToDelete()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue