From 86f6fc510e4c482b53cb8ae32cb20f0af401b888 Mon Sep 17 00:00:00 2001 From: Abandoned Cart Date: Thu, 25 Aug 2022 09:08:52 -0400 Subject: [PATCH] Remove printing result message from author There is no purpose in printing the same result twice, so any duplicate messages should instead allow the field to be truncated. --- app/src/main/java/emu/skyline/AppDialog.kt | 2 +- app/src/main/java/emu/skyline/adapter/AppViewItem.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/emu/skyline/AppDialog.kt b/app/src/main/java/emu/skyline/AppDialog.kt index f7e1493d..d1e38bf4 100644 --- a/app/src/main/java/emu/skyline/AppDialog.kt +++ b/app/src/main/java/emu/skyline/AppDialog.kt @@ -77,7 +77,7 @@ class AppDialog : BottomSheetDialogFragment() { binding.gameIcon.setImageBitmap(item.icon ?: missingIcon) binding.gameTitle.text = item.title binding.gameVersion.text = item.version ?: item.loaderResultString(requireContext()) - binding.gameAuthor.text = item.author ?: item.loaderResultString(requireContext()) + binding.gameAuthor.text = item.author binding.gamePlay.isEnabled = item.loaderResult == LoaderResult.Success binding.gamePlay.setOnClickListener { diff --git a/app/src/main/java/emu/skyline/adapter/AppViewItem.kt b/app/src/main/java/emu/skyline/adapter/AppViewItem.kt index 4c7b3ac0..cc53cafb 100644 --- a/app/src/main/java/emu/skyline/adapter/AppViewItem.kt +++ b/app/src/main/java/emu/skyline/adapter/AppViewItem.kt @@ -96,7 +96,7 @@ class AppViewItem(var layoutType : LayoutType, private val item : AppItem, priva val binding = holder.binding binding.textTitle.text = item.title binding.textVersion.text = item.version ?: item.loaderResultString(binding.root.context) - binding.textAuthor.text = item.author ?: item.loaderResultString(binding.root.context) + binding.textAuthor.text = item.author binding.icon.setImageBitmap(item.icon ?: missingIcon)