title: Up button is not working with my custom transition
body: <p>I defined customWindowAnimation in values>styles. This work properly with back button but when I press the UP button in toolbar the transition is not working :( </p>
  
  <p>Could you please help me to find a solution? . thanks in advance . </p>
  
  <p>Here's the resource file</p>
  
  <p></p>
  
  <pre><code>&lt;!-- Base application theme. --&gt;
  &lt;style name="AppTheme" parent="AppTheme.Base"&gt;
      &lt;!-- Customize your theme here. --&gt;
      &lt;item name="colorPrimary"&gt;#c9416f&lt;/item&gt;
      &lt;item name="colorPrimaryDark"&gt;#c4265b&lt;/item&gt;
      &lt;item name="colorAccent"&gt;#c21b53&lt;/item&gt;
  
      &lt;item name="android:windowAnimationStyle"&gt;@style/CustomActivityAnimation&lt;/item&gt;
  &lt;/style&gt;
  
  
  
  &lt;style name="AppTheme.Base" parent="Theme.AppCompat.Light.NoActionBar"&gt;
      &lt;item name="colorPrimary"&gt;@color/colorPrimary&lt;/item&gt;
      &lt;item name="colorPrimaryDark"&gt;@color/colorPrimaryDark&lt;/item&gt;
      &lt;item name="colorAccent"&gt;@color/colorAccent&lt;/item&gt;
      &lt;item name="colorControlNormal"&gt;@android:color/white&lt;/item&gt;
  
  &lt;/style&gt;
  
  &lt;style name="CustomActivityAnimation" parent="@android:style/Animation.Activity"&gt;
      &lt;item name="android:activityOpenEnterAnimation"&gt;@anim/slide_in_right&lt;/item&gt;
      &lt;item name="android:activityOpenExitAnimation"&gt;@anim/slide_out_left&lt;/item&gt;
      &lt;item name="android:activityCloseEnterAnimation"&gt;@anim/slide_in_left&lt;/item&gt;
      &lt;item name="android:activityCloseExitAnimation"&gt;@anim/slide_out_right&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p></p>
  
  <p>manifest file `
  </p>
  
  <pre><code>&lt;application
      android:allowBackup="true"
      android:icon="@mipmap/ic_launcher"
      android:label="@string/app_name"
      android:roundIcon="@mipmap/ic_launcher"
      android:supportsRtl="true"
      android:theme="@style/AppTheme"&gt;
      &lt;activity android:name=".MainActivity"&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=".eshohor"
          android:parentActivityName="com.sonalirod.run6.MainActivity"&gt;
          &lt;meta-data
          android:name="android.support.parentActivity"
          android:value=".MainActivity"
          /&gt;
      &lt;/activity&gt;
  
      &lt;activity android:name=".namkoron" /&gt;
  
      &lt;activity android:name=".Jelaporicity"/&gt;
  
      &lt;activity android:name=".potovumi"
                android:parentActivityName="com.sonalirod.run6.MainActivity" /&gt;
  
      &lt;activity android:name=".thanasomoho"&gt;&lt;/activity&gt;
  &lt;/application&gt;
  </code></pre>
  
  <p>`</p>