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

Lint warning with sendToView, but not with deliverToView #156

Open
Syex opened this issue Aug 7, 2018 · 0 comments
Open

Lint warning with sendToView, but not with deliverToView #156

Syex opened this issue Aug 7, 2018 · 0 comments

Comments

@Syex
Copy link
Contributor

Syex commented Aug 7, 2018

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant