|
|
@ -239,6 +239,7 @@ class GamePropertiesFragment : Fragment() { |
|
|
|
|
|
|
|
|
dialog.show() |
|
|
dialog.show() |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
private fun reloadList() { |
|
|
private fun reloadList() { |
|
|
_binding ?: return |
|
|
_binding ?: return |
|
|
|
|
|
|
|
|
@ -432,14 +433,14 @@ class GamePropertiesFragment : Fragment() { |
|
|
SubmenuProperty( |
|
|
SubmenuProperty( |
|
|
R.string.reset_playtime, |
|
|
R.string.reset_playtime, |
|
|
R.string.reset_playtime_description, |
|
|
R.string.reset_playtime_description, |
|
|
R.drawable.ic_delete |
|
|
|
|
|
) { |
|
|
|
|
|
|
|
|
R.drawable.ic_delete, |
|
|
|
|
|
action = { |
|
|
MessageDialogFragment.newInstance( |
|
|
MessageDialogFragment.newInstance( |
|
|
requireActivity(), |
|
|
requireActivity(), |
|
|
titleId = R.string.reset_playtime, |
|
|
titleId = R.string.reset_playtime, |
|
|
descriptionId = R.string.reset_playtime_warning_description, |
|
|
descriptionId = R.string.reset_playtime_warning_description, |
|
|
positiveAction = { |
|
|
positiveAction = { |
|
|
NativeLibrary.playTimeManagerResetProgramPlayTime( args.game.programId) |
|
|
|
|
|
|
|
|
NativeLibrary.playTimeManagerResetProgramPlayTime(args.game.programId) |
|
|
Toast.makeText( |
|
|
Toast.makeText( |
|
|
YuzuApplication.appContext, |
|
|
YuzuApplication.appContext, |
|
|
R.string.playtime_reset_successfully, |
|
|
R.string.playtime_reset_successfully, |
|
|
@ -451,6 +452,7 @@ class GamePropertiesFragment : Fragment() { |
|
|
).show(parentFragmentManager, MessageDialogFragment.TAG) |
|
|
).show(parentFragmentManager, MessageDialogFragment.TAG) |
|
|
} |
|
|
} |
|
|
) |
|
|
) |
|
|
|
|
|
) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -686,7 +688,5 @@ class GamePropertiesFragment : Fragment() { |
|
|
Toast.LENGTH_SHORT |
|
|
Toast.LENGTH_SHORT |
|
|
).show() |
|
|
).show() |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |