Skip to content

Commit

Permalink
LifecycleRegistryOwner is deprecated. So there is no more content pro…
Browse files Browse the repository at this point in the history
…vider needed.
  • Loading branch information
Harry Minkyu Ko committed Nov 15, 2017
1 parent a5b7692 commit d0fbb77
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import android.arch.lifecycle.Lifecycle;
import android.arch.lifecycle.LifecycleActivity;
import android.arch.lifecycle.LifecycleOwner;
import android.arch.lifecycle.LifecycleRuntimeTrojanProvider;
import com.trello.lifecycle2.android.lifecycle.AndroidLifecycle;
import com.trello.rxlifecycle2.LifecycleProvider;
import io.reactivex.Observable;
Expand All @@ -26,8 +25,6 @@ public class AndroidLifecycleActivityTest {
@Before
public void setup() {
observable = PublishSubject.create().hide();
// LifecycleRegistryOwner requires a content provider to init correctly.
Robolectric.buildContentProvider(LifecycleRuntimeTrojanProvider.class).create();
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import android.arch.lifecycle.Lifecycle;
import android.arch.lifecycle.LifecycleFragment;
import android.arch.lifecycle.LifecycleOwner;
import android.arch.lifecycle.LifecycleRuntimeTrojanProvider;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import com.trello.lifecycle2.android.lifecycle.AndroidLifecycle;
Expand All @@ -27,8 +26,6 @@ public class AndroidLifecycleFragmentTest {
@Before
public void setup() {
observable = PublishSubject.create().hide();
// LifecycleRegistryOwner requires a content provider to init correctly.
Robolectric.buildContentProvider(LifecycleRuntimeTrojanProvider.class).create();
}

@Test
Expand Down

0 comments on commit d0fbb77

Please sign in to comment.