Created
January 25, 2018 04:26
-
-
Save cloudbank/fc8e4f56bc81a018a3684a5f2523703e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class TestRepository { | |
@Inject | |
public TestRepository() {} | |
… | |
} | |
public class MainActivity extends DaggerActivity { | |
@Inject | |
TestRepository testRepository; | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_main); | |
Toast.makeText(this, "The repo is injected" + testRepository, Toast.LENGTH_LONG).show(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment