use of de.tum.in.tumcampusapp.component.tumui.lectures.model.LecturesSearchRow in project TumCampusApp by TCA-Team.
the class LecturesPersonalActivity method onCreate.
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// bind UI elements
lvMyLecturesList = findViewById(R.id.lvMyLecturesList);
// handle on click events by showing its LectureDetails
lvMyLecturesList.setOnItemClickListener((a, v, position, id) -> {
Object o = lvMyLecturesList.getItemAtPosition(position);
LecturesSearchRow item = (LecturesSearchRow) o;
// set bundle for LectureDetails and show it
Bundle bundle = new Bundle();
// we need the stp_sp_nr
bundle.putString(LecturesSearchRow.Companion.getSTP_SP_NR(), item.getStp_sp_nr());
Intent intent = new Intent(LecturesPersonalActivity.this, LecturesDetailsActivity.class);
intent.putExtras(bundle);
// start LectureDetails for given stp_sp_nr
startActivity(intent);
});
onStartSearch();
}
Aggregations