mirror of
				https://git.tardis.systems/mirrors/yuzu
				synced 2025-11-04 12:45:03 +01:00 
			
		
		
		
	android: Pre-select custom config in game launch dialog
This commit is contained in:
		
							parent
							
								
									345fb6b226
								
							
						
					
					
						commit
						f6bf8b3ed3
					
				@ -15,7 +15,7 @@ import org.yuzu.yuzu_emu.model.Game
 | 
			
		||||
import org.yuzu.yuzu_emu.utils.SerializableHelper.parcelable
 | 
			
		||||
 | 
			
		||||
class LaunchGameDialogFragment : DialogFragment() {
 | 
			
		||||
    private var selectedItem = 0
 | 
			
		||||
    private var selectedItem = 1
 | 
			
		||||
 | 
			
		||||
    override fun onCreateDialog(savedInstanceState: Bundle?): Dialog {
 | 
			
		||||
        val game = requireArguments().parcelable<Game>(GAME)
 | 
			
		||||
@ -32,7 +32,7 @@ class LaunchGameDialogFragment : DialogFragment() {
 | 
			
		||||
                    .actionGlobalEmulationActivity(game, selectedItem != 0)
 | 
			
		||||
                requireParentFragment().findNavController().navigate(action)
 | 
			
		||||
            }
 | 
			
		||||
            .setSingleChoiceItems(launchOptions, 0) { _: DialogInterface, i: Int ->
 | 
			
		||||
            .setSingleChoiceItems(launchOptions, 1) { _: DialogInterface, i: Int ->
 | 
			
		||||
                selectedItem = i
 | 
			
		||||
            }
 | 
			
		||||
            .setNegativeButton(android.R.string.cancel, null)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user