From 82eeefb544cc27e75724827b81f942f1da878e23 Mon Sep 17 00:00:00 2001 From: Viktor De Pasquale Date: Thu, 24 Oct 2019 18:40:15 +0200 Subject: [PATCH] Added system version to the details section for safetynet checks --- .../redesign/safetynet/SafetynetFragment.kt | 40 +------------------ .../res/layout/fragment_safetynet_md2.xml | 32 ++++++++++++++- app/src/main/res/values/strings_md2.xml | 1 + 3 files changed, 32 insertions(+), 41 deletions(-) diff --git a/app/src/main/java/com/topjohnwu/magisk/redesign/safetynet/SafetynetFragment.kt b/app/src/main/java/com/topjohnwu/magisk/redesign/safetynet/SafetynetFragment.kt index bcd5d44ad..468df5b64 100644 --- a/app/src/main/java/com/topjohnwu/magisk/redesign/safetynet/SafetynetFragment.kt +++ b/app/src/main/java/com/topjohnwu/magisk/redesign/safetynet/SafetynetFragment.kt @@ -1,19 +1,10 @@ package com.topjohnwu.magisk.redesign.safetynet import android.os.Build -import android.view.View -import android.view.ViewAnimationUtils -import androidx.core.animation.doOnEnd -import androidx.core.view.isInvisible -import androidx.core.view.isVisible -import androidx.databinding.BindingAdapter -import androidx.interpolator.view.animation.FastOutSlowInInterpolator import com.topjohnwu.magisk.R import com.topjohnwu.magisk.databinding.FragmentSafetynetMd2Binding import com.topjohnwu.magisk.redesign.compat.CompatFragment import org.koin.androidx.viewmodel.ext.android.viewModel -import kotlin.math.hypot -import kotlin.math.roundToInt class SafetynetFragment : CompatFragment() { @@ -22,37 +13,8 @@ class SafetynetFragment : CompatFragment + @@ -92,7 +93,7 @@ android:layout_height="wrap_content" android:text="@string/manager" android:textAppearance="?appearanceTextCaptionVariant" - app:layout_constraintBottom_toTopOf="@+id/safetynet_attestation" + app:layout_constraintBottom_toTopOf="@+id/safetynet_android_title" app:layout_constraintEnd_toStartOf="@+id/safetynet_manager_version" app:layout_constraintHorizontal_chainStyle="packed" app:layout_constraintStart_toStartOf="parent" @@ -113,6 +114,33 @@ app:layout_constraintTop_toTopOf="@+id/safetynet_manager_title" tools:text="10.0.0" /> + + + + Manager Magisk + System No connection available