Inix
3 months ago
committed by
crueter
No known key found for this signature in database
GPG Key ID: 425ACD2D4830EBC6
2 changed files with
34 additions and
38 deletions
src/android/app/src/main/java/org/yuzu/yuzu_emu/activities/EmulationActivity.kt
src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/GamePropertiesFragment.kt
@ -203,6 +203,7 @@ class EmulationActivity : AppCompatActivity(), SensorEventListener {
override fun onDestroy ( ) {
super . onDestroy ( )
stopForegroundService ( this )
NativeLibrary . playTimeManagerStop ( )
}
@ -327,11 +328,6 @@ class EmulationActivity : AppCompatActivity(), SensorEventListener {
override fun onAccuracyChanged ( sensor : Sensor , i : Int ) { }
override fun onDestroy ( ) {
super . onDestroy ( )
NativeLibrary . playTimeManagerStop ( )
}
private fun enableFullscreenImmersive ( ) {
WindowCompat . setDecorFitsSystemWindows ( window , false )
@ -239,6 +239,7 @@ class GamePropertiesFragment : Fragment() {
dialog . show ( )
}
private fun reloadList ( ) {
_binding ?: return
@ -432,14 +433,14 @@ class GamePropertiesFragment : Fragment() {
SubmenuProperty (
R . string . reset_playtime ,
R . string . reset_playtime_description ,
R . drawable . ic_delete
) {
R . drawable . ic_delete ,
action = {
MessageDialogFragment . newInstance (
requireActivity ( ) ,
titleId = R . string . reset_playtime ,
descriptionId = R . string . reset_playtime_warning_description ,
positiveAction = {
NativeLibrary . playTimeManagerResetProgramPlayTime ( args . game . programId )
NativeLibrary . playTimeManagerResetProgramPlayTime ( args . game . programId )
Toast . makeText (
YuzuApplication . appContext ,
R . string . playtime_reset_successfully ,
@ -451,6 +452,7 @@ class GamePropertiesFragment : Fragment() {
) . show ( parentFragmentManager , MessageDialogFragment . TAG )
}
)
)
}
}
}
@ -686,7 +688,5 @@ class GamePropertiesFragment : Fragment() {
Toast . LENGTH_SHORT
) . show ( )
}
}
}