Created
October 13, 2019 17:51
-
-
Save ebinjoy999/bfe0ee4fdc808db9d6dd03ad0f95d78a to your computer and use it in GitHub Desktop.
This file contains 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 EbinHomeActivity extends AppCompatActivity { | |
@Inject | |
FriedRice friedRice; | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_ebin_home); | |
setupNextActivity(); | |
SwiggyBoyComponent swiggyBoyComponent = DaggerSwiggyBoyComponent.builder().build(); | |
swiggyBoyComponent.inject(this); | |
TextView textViewPlate = findViewById(R.id.textViewPlate); | |
textViewPlate.setText(friedRice.getFriedRice()); | |
} | |
private void setupNextActivity() { | |
((Button) findViewById(R.id.buttonSwitchHome)).setOnClickListener(v -> { | |
startActivity(new Intent(this, KiranHomeActivity.class)); | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment