1
0
mirror of https://github.com/topjohnwu/Magisk.git synced 2025-08-11 04:17:29 +00:00

Update transitions

This commit is contained in:
topjohnwu
2019-03-24 04:29:09 -04:00
parent e25ce63872
commit b45db44ad9
2 changed files with 3 additions and 3 deletions
app
build.gradle
src
main
java
com
topjohnwu
magisk

@@ -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}"

@@ -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);