From b45db44ad9a462854d7ea51262d2abd578701838 Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Sun, 24 Mar 2019 04:29:09 -0400 Subject: [PATCH] Update transitions --- app/build.gradle | 2 +- .../java/com/topjohnwu/magisk/fragments/MagiskFragment.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 76ec56331..8f81ca357 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -39,7 +39,7 @@ dependencies { implementation "androidx.cardview:cardview:${androidXVersion}" implementation "com.google.android.material:material:${androidXVersion}" implementation 'androidx.work:work-runtime:2.0.0' - implementation 'androidx.transition:transition:1.0.1' + implementation 'androidx.transition:transition:1.1.0-alpha02' def libsuVersion = '2.3.2' implementation "com.github.topjohnwu.libsu:core:${libsuVersion}" diff --git a/app/src/main/java/com/topjohnwu/magisk/fragments/MagiskFragment.java b/app/src/main/java/com/topjohnwu/magisk/fragments/MagiskFragment.java index fd0043ad5..455307d46 100644 --- a/app/src/main/java/com/topjohnwu/magisk/fragments/MagiskFragment.java +++ b/app/src/main/java/com/topjohnwu/magisk/fragments/MagiskFragment.java @@ -256,6 +256,8 @@ public class MagiskFragment extends BaseFragment implements SwipeRefreshLayout.O int image, color; String status, button = ""; + TransitionManager.beginDelayedTransition(root, transition); + if (Config.remoteMagiskVersionCode < 0) { color = colorNeutral; image = R.drawable.ic_help; @@ -311,8 +313,6 @@ public class MagiskFragment extends BaseFragment implements SwipeRefreshLayout.O magisk.setValid(Config.remoteMagiskVersionCode > 0); manager.setValid(Config.remoteManagerVersionCode > 0); - TransitionManager.beginDelayedTransition(root, transition); - if (Config.remoteMagiskVersionCode < 0) { // Hide install related components installOptionCard.setVisibility(View.GONE);