|
|
@ -432,6 +432,10 @@ 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, |
|
|
|
|
|
actions = listOf( |
|
|
|
|
|
SubMenuPropertySecondaryAction( |
|
|
|
|
|
R.string.reset_playtime, |
|
|
R.drawable.ic_delete |
|
|
R.drawable.ic_delete |
|
|
) { |
|
|
) { |
|
|
MessageDialogFragment.newInstance( |
|
|
MessageDialogFragment.newInstance( |
|
|
@ -439,7 +443,7 @@ class GamePropertiesFragment : Fragment() { |
|
|
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 +455,8 @@ class GamePropertiesFragment : Fragment() { |
|
|
).show(parentFragmentManager, MessageDialogFragment.TAG) |
|
|
).show(parentFragmentManager, MessageDialogFragment.TAG) |
|
|
} |
|
|
} |
|
|
) |
|
|
) |
|
|
|
|
|
) |
|
|
|
|
|
) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|