Show a toast when per-game settings are active

This commit is contained in:
Billy Laws 2023-03-05 22:58:01 +00:00
parent 6433a1722d
commit c928084bb1
2 changed files with 5 additions and 0 deletions

View File

@ -22,6 +22,7 @@ import android.os.*
import android.util.Log
import android.util.Rational
import android.view.*
import android.widget.Toast
import androidx.activity.OnBackPressedCallback
import androidx.appcompat.app.AppCompatActivity
import androidx.core.content.getSystemService
@ -309,6 +310,9 @@ class EmulationActivity : AppCompatActivity(), SurfaceHolder.Callback, View.OnTo
force60HzRefreshRate(!emulationSettings.maxRefreshRate)
getSystemService<DisplayManager>()?.registerDisplayListener(this, null)
if (!emulationSettings.isGlobal && emulationSettings.useCustomSettings)
Toast.makeText(this, getString(R.string.per_game_settings_active_message), Toast.LENGTH_SHORT).show()
binding.gameView.setOnTouchListener(this)
// Hide on screen controls when first controller is not set

View File

@ -257,4 +257,5 @@
<!--suppress AndroidLintUnusedResources -->
<string name="expand_button_title" tools:override="true">Expand</string>
<string name="undo">Undo</string>
<string name="per_game_settings_active_message">Per-game settings are active</string>
</resources>