title: Android ViewModel recreated when its Host Activity was not in the top of Activity Stack and the device was rotated
body: <p>I am in the following scenario:</p>
  
  <p>I have an <code>OnboardActivity</code> which contains a <code>ViewModel</code>, I can rotate this <code>OnboardActivity</code> many times and the <code>ViewModel</code> persist across configuration changes without issues.</p>
  
  <p>However, if I launch another <code>Activity(FirebaseAuthActivity)</code> on top of this one (<code>OnboardActivity</code>) with <code>startActivityForResult(...)</code>, and then in <code>FirebaseAuthActivity</code> I rotate the device and press the back button. When the <code>OnboardActivity</code> is brought to the top of the stack it recreates the <code>ViewModel</code> instance again.</p>
  
  <p>Is this the normal behavior of <code>ViewModel</code> in architecture components?</p>
  
  <p>Is there a way I can tell the <code>OnboardActivity</code> to not finish when it is pop from the stack with a screen orientation different than the one it was saved? </p>