File tree Expand file tree Collapse file tree 3 files changed +4
-7
lines changed
commonTest/java/uk/co/ribot/androidboilerplate/test/common/injection/module
main/java/uk/co/ribot/androidboilerplate/ui/main Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -50,9 +50,4 @@ RibotsService provideRibotsService() {
50
50
return mock (RibotsService .class );
51
51
}
52
52
53
- /*@Provides
54
- @Singleton
55
- DatabaseHelper providesDatabaseHelper() {
56
- return mock(DatabaseHelper.class);
57
- }*/
58
53
}
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ public class MainActivity extends BaseActivity implements MainMvpView {
26
26
"uk.co.ribot.androidboilerplate.ui.main.MainActivity.EXTRA_TRIGGER_SYNC_FLAG" ;
27
27
28
28
@ Inject MainPresenter mMainPresenter ;
29
- private RibotsAdapter mRibotsAdapter ;
29
+ @ Inject RibotsAdapter mRibotsAdapter ;
30
30
31
31
@ Bind (R .id .recycler_view ) RecyclerView mRecyclerView ;
32
32
@@ -48,7 +48,6 @@ protected void onCreate(Bundle savedInstanceState) {
48
48
setContentView (R .layout .activity_main );
49
49
ButterKnife .bind (this );
50
50
51
- mRibotsAdapter = new RibotsAdapter ();
52
51
mRecyclerView .setAdapter (mRibotsAdapter );
53
52
mRecyclerView .setLayoutManager (new LinearLayoutManager (this ));
54
53
mMainPresenter .attachView (this );
Original file line number Diff line number Diff line change 10
10
import java .util .ArrayList ;
11
11
import java .util .List ;
12
12
13
+ import javax .inject .Inject ;
14
+
13
15
import butterknife .Bind ;
14
16
import butterknife .ButterKnife ;
15
17
import uk .co .ribot .androidboilerplate .R ;
@@ -19,6 +21,7 @@ public class RibotsAdapter extends RecyclerView.Adapter<RibotsAdapter.RibotViewH
19
21
20
22
private List <Ribot > mRibots ;
21
23
24
+ @ Inject
22
25
public RibotsAdapter () {
23
26
mRibots = new ArrayList <>();
24
27
}
You can’t perform that action at this time.
0 commit comments