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 | b573c18abb79330d7d3f9661a94b2c28ea6eed18 (patch) | |
tree | cd44be323186694a2f3b7d1b74160bffd8a23987 /app/src/main/java/com/wireguard | |
parent | 9aa3698bc63495040dcff9ab34f6f9b81692dd55 (diff) |
ConfigActivity: Enable animations on fragment transitions
Diffstat (limited to 'app/src/main/java/com/wireguard')
-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; |