1
0
Fork 0

treewide: Resolve compilation warnings (#2859)

Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
master
Harsh Shandilya 2019-05-27 22:34:17 +05:30 committed by Colin Lee
parent db2eba9762
commit 7d9c8726c5
5 changed files with 7 additions and 9 deletions

View File

@ -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 -> {

View File

@ -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))

View File

@ -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()

View File

@ -46,7 +46,6 @@ class OnboardingRadioButton : RadioButton {
updateRadioValue(true)
toggleRadioGroups()
clickListener?.invoke()
true
}
}

View File

@ -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()
}
}