Skip to content
This repository was archived by the owner on Mar 16, 2021. It is now read-only.
This repository was archived by the owner on Mar 16, 2021. It is now read-only.

Lint warning with sendToView, but not with deliverToView #156

@Syex

Description

@Syex
class SomePresenter: TiPresenter<SomeView>() {

  class Something(val presenter: SomePresenter) {

    fun doStuff() {
      presenter.sendToView { it.showSomething() }
    }
  }
}

Here Lint marks the usage of sendToView as an error, because the method is annotated with @RestrictTo(SUBCLASSES):

TiPresenter.sendToView can only be called from subclasses

However, replacing the function with the new deliverToView() there is no Lint warning. It should be consistent I guess.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions