From 2592cb60194c30637bce9056b84fbbe423e148bf Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Wed, 6 Sep 2017 16:28:24 +0800 Subject: [PATCH] Show Install button after update check done --- app/src/main/java/com/topjohnwu/magisk/MagiskFragment.java | 1 + app/src/main/res/layout/fragment_magisk.xml | 1 + 2 files changed, 2 insertions(+) diff --git a/app/src/main/java/com/topjohnwu/magisk/MagiskFragment.java b/app/src/main/java/com/topjohnwu/magisk/MagiskFragment.java index d7233e6f9..b9e3663d6 100644 --- a/app/src/main/java/com/topjohnwu/magisk/MagiskFragment.java +++ b/app/src/main/java/com/topjohnwu/magisk/MagiskFragment.java @@ -280,6 +280,7 @@ public class MagiskFragment extends Fragment magiskUpdateText.setText(getString(R.string.install_magisk_title, "v" + mm.remoteMagiskVersionString)); } + installButton.setVisibility(View.VISIBLE); if (mm.remoteManagerVersionCode > BuildConfig.VERSION_CODE) { installText.setText(getString(R.string.update, getString(R.string.app_name))); } else if (mm.magiskVersionCode > 0 && mm.remoteMagiskVersionCode > mm.magiskVersionCode) { diff --git a/app/src/main/res/layout/fragment_magisk.xml b/app/src/main/res/layout/fragment_magisk.xml index 92bf74f45..d52eb8b7e 100644 --- a/app/src/main/res/layout/fragment_magisk.xml +++ b/app/src/main/res/layout/fragment_magisk.xml @@ -383,6 +383,7 @@ android:layout_marginTop="4dp" android:clickable="true" android:foreground="?android:attr/selectableItemBackground" + android:visibility="gone" app:cardCornerRadius="@dimen/card_corner_radius" app:cardElevation="@dimen/card_elevation">