summaryrefslogtreecommitdiffhomepage
path: root/app/src/main/java/com/wireguard
diff options
context:
space:
mode:
authorSamuel Holland <samuel@sholland.org>2017-08-14 15:20:57 -0500
committerSamuel Holland <samuel@sholland.org>2017-08-14 15:20:57 -0500
commitb573c18abb79330d7d3f9661a94b2c28ea6eed18 (patch)
treecd44be323186694a2f3b7d1b74160bffd8a23987 /app/src/main/java/com/wireguard
parent9aa3698bc63495040dcff9ab34f6f9b81692dd55 (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.java2
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;