mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-26 01:37:48 +00:00
Show Install button after update check done
This commit is contained in:
parent
f7df17a7ed
commit
2592cb6019
@ -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) {
|
||||
|
@ -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">
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user