mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-12-23 07:51:51 +01:00
Show a toast when per-game settings are active
This commit is contained in:
parent
6433a1722d
commit
c928084bb1
@ -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
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user