title: Restarter must be created only during owner's initialization stage transition
body: <p>I am trying to implement transitions in my app for the first time, but it keeps crashing with this message</p>
  
  <p><code>Restarter must be created only during owner's initialization stage transition</code></p>
  
  <p>This is how I add the fragment:</p>
  
  <pre><code>        activity.subFm.beginTransaction()
              .setCustomAnimations(
                  R.anim.slide_in_up,
                  R.anim.slide_out_down,
                  R.anim.slide_in_up,
                  R.anim.slide_out_down
              )
              .replace(R.id.feed_subcontents_frame_container, activity.searchFragment, "searchFragment")
              .addToBackStack("searchFragment").commit()
  </code></pre>
  
  <p>I tried also like this:</p>
  
  <pre><code>        activity.subFm.beginTransaction()
              .setCustomAnimations(
                  R.anim.slide_in_up,
                  R.anim.slide_out_down,
                  R.anim.slide_in_up,
                  R.anim.slide_out_down
              )
              .add(R.id.feed_subcontents_frame_container, activity.searchFragment, "searchFragment")
              .addToBackStack("searchFragment").commit()
  </code></pre>
  
  <p>What happens is that that the fragment is launched successfully and with transition, but there are two issues.</p>
  
  <ol>
  <li>When clicking the back button no transition happens at all, and the fragment just disappears with no animation.</li>
  <li>When I click the button that launches the fragment again, the app crashes with that message.</li>
  </ol>
  
  <p>Everything is working just fine when I don't use transactions. I just pop the back stack hen the back button is clicked and I can go back and forth between opening and closing the fragment forever. But as soon as I add this transactions it breaks.</p>
  
  <p>I've seen this <a href="https://stackoverflow.com/questions/56539251/backstack-management-restarter-must-be-created-only-during-owners-initializat">post</a> and people suggest switching to appcompat : 1.1.0-beta01 or 1.0.2 but I actually already have been using both. I tried removing wither and running the app and it still crashes. What am I doing wrong? I am just trying to implement a simple slide_in &amp; slide_out animations.</p>
  
  <p>Slide in:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;set xmlns:android="http://schemas.android.com/apk/res/android"&gt;
      &lt;translate
              android:duration="@android:integer/config_mediumAnimTime"
              android:fromYDelta="100%p"
              android:toYDelta="0%p"/&gt;
  &lt;/set&gt;
  </code></pre>
  
  <p>slide out:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;set xmlns:android="http://schemas.android.com/apk/res/android"&gt;
      &lt;translate
              android:duration="@android:integer/config_mediumAnimTime"
              android:fromXDelta="0"
              android:toYDelta="-100%" /&gt;
  &lt;/set&gt;
  </code></pre>