android: Add toast popup while saving states through UI

This commit is contained in:
kleidis 2024-09-25 18:41:41 +02:00 committed by OpenSauce
parent 88c70b085e
commit 1889832d12

View File

@ -541,6 +541,9 @@ class EmulationFragment : Fragment(), SurfaceHolder.Callback, Choreographer.Fram
add(text).setEnabled(enableClick).setOnMenuItemClickListener {
if(isSaving) {
NativeLibrary.saveState(slot)
Toast.makeText(context,
getString(R.string.quicksave_saving),
Toast.LENGTH_SHORT).show()
} else {
NativeLibrary.loadState(slot)
binding.drawerLayout.close()