alcatrazbr
11/30/2016 - 1:02 PM

prevent onCreate on HomeUp button pressed

prevent onCreate on HomeUp button pressed


@Override
public boolean onOptionsItemSelected(MenuItem item) {
    switch (item.getItemId()) {
        // Respond to the action bar's Up/Home button
        case android.R.id.home:
//                NavUtils.navigateUpFromSameTask(this);
            finish();
            return true;
    }
    return super.onOptionsItemSelected(item);
}