diff options
author | Abandoned Cart <twistedumbrella@gmail.com> | 2023-06-16 13:50:47 +0200 |
---|---|---|
committer | Abandoned Cart <twistedumbrella@gmail.com> | 2023-06-22 00:25:15 +0200 |
commit | 1a85d8804a044d689e53b2497be01b65c76c34d2 (patch) | |
tree | dea72415f6c3ebe1e7f5ab5fcf9645656153481e | |
parent | android: Add support for concurrent installs (diff) | |
download | yuzu-1a85d8804a044d689e53b2497be01b65c76c34d2.tar yuzu-1a85d8804a044d689e53b2497be01b65c76c34d2.tar.gz yuzu-1a85d8804a044d689e53b2497be01b65c76c34d2.tar.bz2 yuzu-1a85d8804a044d689e53b2497be01b65c76c34d2.tar.lz yuzu-1a85d8804a044d689e53b2497be01b65c76c34d2.tar.xz yuzu-1a85d8804a044d689e53b2497be01b65c76c34d2.tar.zst yuzu-1a85d8804a044d689e53b2497be01b65c76c34d2.zip |
-rw-r--r-- | src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/LongMessageDialogFragment.kt (renamed from src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/InstallDialogFragment.kt) | 8 | ||||
-rw-r--r-- | src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/main/MainActivity.kt | 14 |
2 files changed, 11 insertions, 11 deletions
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/InstallDialogFragment.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/LongMessageDialogFragment.kt index d8850f941..b29b627e9 100644 --- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/InstallDialogFragment.kt +++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/LongMessageDialogFragment.kt @@ -11,7 +11,7 @@ import androidx.fragment.app.DialogFragment import com.google.android.material.dialog.MaterialAlertDialogBuilder import org.yuzu.yuzu_emu.R -class InstallDialogFragment : DialogFragment() { +class LongMessageDialogFragment : DialogFragment() { override fun onCreateDialog(savedInstanceState: Bundle?): Dialog { val titleId = requireArguments().getInt(TITLE) val description = requireArguments().getString(DESCRIPTION) @@ -37,7 +37,7 @@ class InstallDialogFragment : DialogFragment() { } companion object { - const val TAG = "MessageDialogFragment" + const val TAG = "LongMessageDialogFragment" private const val TITLE = "Title" private const val DESCRIPTION = "Description" @@ -47,8 +47,8 @@ class InstallDialogFragment : DialogFragment() { titleId: Int, description: String, helpLinkId: Int = 0 - ): InstallDialogFragment { - val dialog = InstallDialogFragment() + ): LongMessageDialogFragment { + val dialog = LongMessageDialogFragment() val bundle = Bundle() bundle.apply { putInt(TITLE, titleId) diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/main/MainActivity.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/main/MainActivity.kt index 5257d7b36..3086cfad3 100644 --- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/main/MainActivity.kt +++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/main/MainActivity.kt @@ -43,7 +43,7 @@ import org.yuzu.yuzu_emu.features.settings.model.SettingsViewModel import org.yuzu.yuzu_emu.features.settings.ui.SettingsActivity import org.yuzu.yuzu_emu.features.settings.utils.SettingsFile import org.yuzu.yuzu_emu.fragments.IndeterminateProgressDialogFragment -import org.yuzu.yuzu_emu.fragments.InstallDialogFragment +import org.yuzu.yuzu_emu.fragments.LongMessageDialogFragment import org.yuzu.yuzu_emu.fragments.MessageDialogFragment import org.yuzu.yuzu_emu.model.GamesViewModel import org.yuzu.yuzu_emu.model.HomeViewModel @@ -548,7 +548,7 @@ class MainActivity : AppCompatActivity(), ThemeProvider { installResult.append( getString( R.string.install_game_content_failed_count, - + errorTotal ) ) installResult.append(separator) @@ -572,16 +572,16 @@ class MainActivity : AppCompatActivity(), ThemeProvider { ) installResult.append(separator) } - InstallDialogFragment.newInstance( + LongMessageDialogFragment.newInstance( R.string.install_game_content_failure, installResult.toString().trim(), R.string.install_game_content_help_link - ).show(supportFragmentManager, MessageDialogFragment.TAG) + ).show(supportFragmentManager, LongMessageDialogFragment.TAG) } else { - InstallDialogFragment.newInstance( + LongMessageDialogFragment.newInstance( R.string.install_game_content_success, - installResult.toString().trim(), - ).show(supportFragmentManager, MessageDialogFragment.TAG) + installResult.toString().trim() + ).show(supportFragmentManager, LongMessageDialogFragment.TAG) } } } |