title: Toolbar (SupportActionBar) title changes to app name on orientation change
body: <p>I have this code in my Activity:</p>
  
  <pre><code>protected void onCreate(Bundle savedInstanceState) {
      ...
      Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
      setSupportActionBar(toolbar);
      ActionBar actionBar = getSupportActionBar();
      if (actionBar != null) {
        actionBar.setDisplayHomeAsUpEnabled(true);
      }
      ...
  }
  </code></pre>
  
  <p>I'm updating the ActionBar title from various fragments like this in <code>onResume()</code>:</p>
  
  <pre><code>ActionBar actionBar = ((AppCompatActivity) getActivity()).getSupportActionBar();
  if (actionBar != null) {
      actionBar.setTitle(title);
  }
  </code></pre>
  
  <p>This is working fine, but after orientation change, the title changes to the app name again. How I can overcome this?</p>
  
  <p>EDIT:
  After investigating more, I tried this and found this weird behaviour:
  Added this code where I was setting title in Fragments:</p>
  
  <pre><code>final ActionBar actionBar = ((AppCompatActivity)getActivity()).getSupportActionBar();
  if (actionBar != null) {
      new Handler().postDelayed(new Runnable() {
          @Override
          public void run() {
              Log.d("SWAPNIL", "IN RUN BEFORE: " + actionBar.getTitle());
              actionBar.setTitle(title);
              Log.d("SWAPNIL", "IN RUN AFTER : " + actionBar.getTitle());
          }
      }, 3000);
  }
  </code></pre>
  
  <p>And here's the log:</p>
  
  <pre><code>10-13 10:27:04.526 3719-3719/com.example.xxxx D/SWAPNIL: onResumeHelp
  10-13 10:27:07.528 3719-3719/com.example.xxxx D/SWAPNIL: IN RUN BEFORE: MY APP NAME
  10-13 10:27:07.528 3719-3719/com.example.xxxx D/SWAPNIL: IN RUN AFTER : title
  10-13 10:27:21.012 3719-3719/com.example.xxxx D/SWAPNIL: onResumeHelp
  10-13 10:27:24.013 3719-3719/com.example.xxxx D/SWAPNIL: IN RUN BEFORE: title
  10-13 10:27:24.013 3719-3719/com.example.xxxx D/SWAPNIL: IN RUN AFTER : title
  </code></pre>
  
  <p>It was getting changed as per logs but wasn't reflected in UI.
  Please help me!</p>