title: Fragments. ActionBar Back navigation
body: <p>I have one Activity and three Fragments. When I go from one fragment to another I write it transaction into backStack:</p>
  
  <pre><code>transaction.addToBackStack(null);
  </code></pre>
  
  <p>When I press back arrow on ActionBar and go to the first fragment that arrow is lose and it's right. </p>
  
  <pre><code> switch (item.getItemId()) {
          case android.R.id.home:
  
             FragmentTransaction fragmentTransaction = getFragmentManager().beginTransaction();
              OfficialNameFragment offName = new OfficialNameFragment();
              fragmentTransaction.remove(offName);
              fragmentTransaction.commit();
              getFragmentManager().popBackStack();
  </code></pre>
  
  <p>((AppCompatActivity)getActivity()).getSupportActionBar()
  .setDisplayHomeAsUpEnabled(false);</p>
  
  <pre><code>            return true;
  
          default:
              return super.onOptionsItemSelected(item);
      }
  </code></pre>
  
  <p>But if I press system back button and go to the first fragment that back arrow is stay and it's wrong.</p>