diff --git a/thirtyinch/src/main/java/net/grandcentrix/thirtyinch/TiPresenter.java b/thirtyinch/src/main/java/net/grandcentrix/thirtyinch/TiPresenter.java index 5a815db7..8d6c829d 100644 --- a/thirtyinch/src/main/java/net/grandcentrix/thirtyinch/TiPresenter.java +++ b/thirtyinch/src/main/java/net/grandcentrix/thirtyinch/TiPresenter.java @@ -16,10 +16,13 @@ package net.grandcentrix.thirtyinch; +import static android.support.annotation.RestrictTo.Scope.SUBCLASSES; + import android.app.Activity; import android.content.Intent; import android.support.annotation.NonNull; import android.support.annotation.Nullable; +import android.support.annotation.RestrictTo; import android.support.annotation.VisibleForTesting; import android.support.v4.app.Fragment; import android.widget.Toast; @@ -560,7 +563,8 @@ protected void onWakeUp() { * @see #sendPostponedActionsToView * @see #onAttachView(TiView) */ - protected void sendToView(final ViewAction action) { + @RestrictTo(SUBCLASSES) + public void sendToView(final ViewAction action) { final V view = getView(); if (view != null) { runOnUiThread(new Runnable() {