diff options
author | Samuel Holland <samuel@sholland.org> | 2017-08-14 15:20:57 -0500 |
---|---|---|
committer | Samuel Holland <samuel@sholland.org> | 2017-08-14 15:20:57 -0500 |
commit | ab271e715337aaed72cad39669f96d047ce8aa74 (patch) | |
tree | cd44be323186694a2f3b7d1b74160bffd8a23987 /app/src/main/java | |
parent | 83da2aa1990d534bb2531b01fa1993de6d225d69 (diff) |
ConfigActivity: Enable animations on fragment transitions
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'app/src/main/java')
-rw-r--r-- | app/src/main/java/com/wireguard/android/ConfigActivity.java | 2 |
1 files changed, 2 insertions, 0 deletions
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; |