Override doesn't work the way it is supposed to
<p>I have a class that extends <code>SherlockFragmentActivity</code> that is supposed to provide <code>actionBar</code> to other classes. Somehow when I override some methods, they aren't working the way they should. This is the original <code>overriden</code> method</p>

<pre><code>@Override
public boolean onOptionsItemSelected(MenuItem item) {

    switch (item.getItemId()) {
    case android.R.id.home:
        final Intent intent = new Intent(getApplicationContext(),
                MainScreen.class);
        intent.putExtra("Back", true);
        startActivity(intent);
        break;

    default:
        break;
    }

    return super.onOptionsItemSelected(item);
}
</code></pre>

<p>And here I <code>override</code> it in my <code>Activity</code>.</p>

<pre><code>@Override
public boolean onOptionsItemSelected(MenuItem item) {

    switch (item.getItemId()) {
    case android.R.id.home:
        final Intent intent = new Intent(Terms.this, CarDetailed.class);
        Log.d("ActionBar in Terms", "Home button pressed");
        intent.putExtra("Back", true);
        startActivity(intent);
        break;

    default:
        break;
    }

    return super.onOptionsItemSelected(item);
}
</code></pre>

<p>The log says it is invoking home <code>button</code>, but somehow I am always redirected to <code>MainScreen.class</code>. What am I doing wrong?</p>

<p><strong>SOLVED</strong></p>

<p>I returned super method, that was my error.</p>
