title: Screen rotate 3 times when back to landscape activity from portrait activity
body: <p>I have this issue in my tablet device Android 8.1. This device has natural orientation is landscape</p>
  
  <p>I have 2 activity : </p>
  
  <p>A is configured with fullSensor, contains a recyclerview to load items with thumbnail image</p>
  
  <p>B is portrait, contain a surfaceview</p>
  
  <pre><code>  &lt;activity
          android:name="com.hdq.myapp.activities.AActivity"
          android:configChanges="orientation|keyboardHidden|screenSize"
          android:theme="@style/AppTheme.NoActionBar"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.MAIN" /&gt;
  
              &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
  
      &lt;activity
          android:name="com.hdq.myapp.activities.BActivity"
          android:configChanges="orientation|keyboardHidden|screenSize"
          android:screenOrientation="fullSensor"
          android:theme="@style/AppTheme.NoActionBar"&gt;
  </code></pre>
  
  <ul>
  <li><p>Step 1 : Open activity A in landscape -> start Activity B : it rotate
  to portrait   </p></li>
  <li><p>Step 2 : Press Back button, it return to activity A and rotate to
  landscape</p></li>
  <li><p>Step 3 : After that, it keep rotate to portrait immmdiately</p></li>
  <li><p>Step 4 : Finally, it rotate to landscape again. 3 rotation in just 2 second</p></li>
  </ul>
  
  <p>It's seem less happen out if A and B is very simple activity (no recylerview, no surfaceview). Just less than before.</p>
  
  <p>This behavior is too weird and I'm not sure where it come from, maybe OS or somewhere my app. The onConfigurationdChanged() method was called 2 time. Another apps in this device are not happen like this. Do you have any idea about this? Is that a memory issue or something like that?</p>
  
  <p>I update the profiler in my device :
  <a href="https://i.stack.imgur.com/8ab1M.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8ab1M.png" alt="enter image description here"></a></p>
  
  <p>The red one is the first normal rotation. 2 yellow ones is redundant.</p>
  
  <p>This is call chart :</p>
  
  <p><a href="https://i.stack.imgur.com/rP269.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rP269.png" alt="enter image description here"></a></p>