title: Performance issue when calling setRequestedOrientation
body: <p>I have vertical android app with many fragments inside just one activity. At some point I'm having user the sign. Thus I rotate device using following code at <code>onCreateView</code> and <code>onDestroyView</code>of signature fragment.</p>
  
  <pre><code>getActivity().setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
  ((AppCompatActivity) getActivity()).getSupportActionBar().show();
  </code></pre>
  
  <p>However, it takes too much time to replace fragment, sometimes more than 2 seconds, and even I put waiting dialog on nextPage button click, It's not showing the dialog. (Even there is no function inside of nextPage button but replace fragment function) </p>
  
  <p>I think It's about CPU, but didn't understand which column (Inclusive Time, Exclusive Time etc) is related to it. Here is screenshot;</p>
  
  <p><a href="https://i.stack.imgur.com/IDHTa.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IDHTa.png" alt="enter image description here"></a></p>
  
  <p>Any idea about solution or what is causing this?</p>
  
  <p>Thanks.</p>