Changed View's resId

This commit is contained in:
2022-05-12 01:29:18 +08:00
parent 9fe224fc3a
commit 4988ebbf3b
2 changed files with 4 additions and 4 deletions

View File

@@ -82,8 +82,8 @@ class AppErrorsDetailActivity : BaseActivity<ActivityAppErrorsDetailBinding>() {
}.onFailure { toast(msg = "Start Android SAF failed") }
}
binding.appIcon.setImageDrawable(appIcon(appErrorsInfo.packageName))
binding.appName.text = appName(appErrorsInfo.packageName)
binding.appVersion.text = appVersion(appErrorsInfo.packageName)
binding.appNameText.text = appName(appErrorsInfo.packageName)
binding.appVersionText.text = appVersion(appErrorsInfo.packageName)
binding.jvmErrorPanel.isGone = appErrorsInfo.isNativeCrash
binding.errorTypeIcon.setImageResource(if (appErrorsInfo.isNativeCrash) R.drawable.ic_cpp else R.drawable.ic_java)
binding.errorInfoText.text = appErrorsInfo.exceptionMessage

View File

@@ -129,7 +129,7 @@
android:orientation="horizontal">
<TextView
android:id="@+id/app_name"
android:id="@+id/app_name_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="5dp"
@@ -146,7 +146,7 @@
</LinearLayout>
<TextView
android:id="@+id/app_version"
android:id="@+id/app_version_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="end"