Resume rather than relaunch when same shortcut is used

This commit is contained in:
PixelyIon 2021-10-24 00:11:38 +05:30
parent 1e7347bf72
commit 39e924aec8

View File

@ -307,8 +307,10 @@ class EmulationActivity : AppCompatActivity(), SurfaceHolder.Callback, View.OnTo
*/
override fun onNewIntent(intent : Intent?) {
super.onNewIntent(intent!!)
setIntent(intent)
executeApplication(intent)
if (getIntent().data != intent.data) {
setIntent(intent)
executeApplication(intent)
}
}
override fun onDestroy() {