From ab271e715337aaed72cad39669f96d047ce8aa74 Mon Sep 17 00:00:00 2001 From: Samuel Holland Date: Mon, 14 Aug 2017 15:20:57 -0500 Subject: [PATCH] ConfigActivity: Enable animations on fragment transitions Signed-off-by: Jason A. Donenfeld --- app/src/main/java/com/wireguard/android/ConfigActivity.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/com/wireguard/android/ConfigActivity.java b/app/src/main/java/com/wireguard/android/ConfigActivity.java index fe957374..748e326d 100644 --- a/app/src/main/java/com/wireguard/android/ConfigActivity.java +++ b/app/src/main/java/com/wireguard/android/ConfigActivity.java @@ -78,6 +78,7 @@ public class ConfigActivity extends BaseConfigActivity { final FragmentTransaction transaction = fm.beginTransaction(); if (!isSplitLayout) transaction.addToBackStack(TAG_DETAIL); + transaction.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_FADE); transaction.replace(containerId, detailFragment, TAG_DETAIL); transaction.commit(); } else { @@ -120,6 +121,7 @@ public class ConfigActivity extends BaseConfigActivity { } final FragmentTransaction transaction = fm.beginTransaction(); transaction.addToBackStack(TAG_EDIT); + transaction.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_FADE); transaction.replace(containerId, editFragment, TAG_EDIT); transaction.commit(); isEditing = true;