package fi.metacity.klmobi;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.NavUtils;
import android.util.Log;
import android.view.MenuItem;

import com.googlecode.androidannotations.annotations.EActivity;
import com.googlecode.androidannotations.annotations.Extra;

@EActivity(R.layout.activity_routes)
public class RoutesActivity extends FragmentActivity {

	@Extra(Constants.EXTRA_ROUTE_INDEX)
	int mInitialRouteIndex;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		Log.i("RouteActivity", "onCreate()");
		super.onCreate(savedInstanceState);
		getActionBar().setDisplayHomeAsUpEnabled(true);
		if (savedInstanceState == null) {
			showResultsFragment(getIntent().getExtras());
		}
	}

	@Override
	public boolean onOptionsItemSelected(MenuItem item) {
		switch (item.getItemId()) {
			case android.R.id.home:
				NavUtils.navigateUpFromSameTask(this);
				return true;
		}
		return super.onOptionsItemSelected(item);
	}
	
	private void showResultsFragment(Bundle args) {
		Fragment routeResultsFrag = new RouteResultsFragment_();
		routeResultsFrag.setArguments(args);
		getSupportFragmentManager().beginTransaction().
			replace(R.id.route_details_container, routeResultsFrag).commit();
	}

}

@@ -180,33 +180,8 @@
 ls;%0A
-import android.util.Log;%0A
 impo
@@ -557,48 +557,8 @@
 ) %7B%0A
-%09%09Log.i(%22RouteActivity%22, %22onCreate()%22);%0A
 %09%09su

Remove logging