package com.worldspotlightapp.android.ui;

import android.os.Bundle;
import android.util.Log;

import com.worldspotlightapp.android.R;
import com.worldspotlightapp.android.model.Organizer;

import java.util.Observable;

public class OrganizerDetailsActivity extends AbstractBaseActivityObserver {

    private static final String TAG = "OrganizerDetails";

    private String mOrganizerObjectId;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_organizer_details);

        // Get the organizer object id from the intent
        Bundle extras = getIntent().getExtras();
        if (extras == null || !extras.containsKey(Organizer.INTENT_KEY_OBJECT_ID)) {
            throw new IllegalArgumentException("You must pass the organizer object id through the intent");
        }

        mOrganizerObjectId = extras.getString(Organizer.INTENT_KEY_OBJECT_ID);
        Log.v(TAG, "The object id got from the intent is " + mOrganizerObjectId);
    }

    @Override
    protected void processDataIfExists() {
        // TODO: implement this
    }

    @Override
    public void update(Observable observable, Object data) {
        // TODO: implement this
    }
}

@@ -86,16 +86,46 @@
 til.Log;
+%0Aimport android.view.MenuItem;
 %0A%0Aimport
@@ -1066,16 +1066,92 @@
 ectId);%0A
+%0A        // Action bar%0A        mActionBar.setDisplayHomeAsUpEnabled(true);%0A%0A
     %7D%0A%0A 
@@ -1357,11 +1357,364 @@
 is%0A    %7D
+%0A%0A    @Override%0A    public boolean onOptionsItemSelected(MenuItem item) %7B%0A        switch (item.getItemId()) %7B%0A            case android.R.id.home:%0A                Log.v(TAG, %22home button pressed%22);%0A                onBackPressed();%0A                return true;%0A            default:%0A                return super.onOptionsItemSelected(item);%0A        %7D%0A    %7D
 %0A%7D%0A

Set back button for the organizer details activity