X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=src%2Fro%2Fieval%2Funical%2FDisplayEventActivity.java;h=f5bb14653686068d3f47ec33b3c7439c2ed60a79;hb=dd76f98a4950d7e2ae3dca98eba1579dac4a340a;hp=798adc68a53d5e0608397b89e46df7e2b4754302;hpb=070d3ab2d6f382ab74988df71eba137424df525f;p=unical.git diff --git a/src/ro/ieval/unical/DisplayEventActivity.java b/src/ro/ieval/unical/DisplayEventActivity.java index 798adc6..f5bb146 100644 --- a/src/ro/ieval/unical/DisplayEventActivity.java +++ b/src/ro/ieval/unical/DisplayEventActivity.java @@ -15,6 +15,7 @@ import android.widget.TextView; public class DisplayEventActivity extends Activity { public static final String EXTRA_EVENT = "event"; + Event e; public static void displayEvent(final Context context, final Event event){ final Intent i=new Intent(context,DisplayEventActivity.class); @@ -25,7 +26,7 @@ public class DisplayEventActivity extends Activity { @Override protected void onCreate(final Bundle savedInstanceState) { super.onCreate(savedInstanceState); - final Event e=getIntent().getParcelableExtra(EXTRA_EVENT); + e=getIntent().getParcelableExtra(EXTRA_EVENT); setContentView(R.layout.event_view); setTitle(e.title); @@ -35,6 +36,7 @@ public class DisplayEventActivity extends Activity { final TextView endDate= (TextView) findViewById(R.id.enddate); final TextView startTime= (TextView) findViewById(R.id.starttime); final TextView endTime= (TextView) findViewById(R.id.endtime); + final TextView description= (TextView) findViewById(R.id.event_view_description); final Date start=new Date(e.dtstart); final Date end=new Date(e.dtend); @@ -50,6 +52,7 @@ public class DisplayEventActivity extends Activity { startDate.setText(dateFormat.format(start)); startTime.setText(timeFormat.format(start)); endTime.setText(timeFormat.format(end)); + description.setText(e.description); } @Override @@ -68,7 +71,7 @@ public class DisplayEventActivity extends Activity { startActivity(i); return true; case R.id.deleteevent: - final DeleteEventDialog d=new DeleteEventDialog(); + final DeleteEventDialog d=new DeleteEventDialog(e,this); d.show(getFragmentManager(), "Delete"); return true; case R.id.eventlist: