mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-03 08:15:33 +00:00
Fix crash on quit confirmation prompt
This commit is contained in:
parent
d03d260535
commit
546843a26c
@ -112,11 +112,15 @@ public class ShortcutTrampoline extends Activity {
|
|||||||
// Now start the activities
|
// Now start the activities
|
||||||
startActivities(intentStack.toArray(new Intent[]{}));
|
startActivities(intentStack.toArray(new Intent[]{}));
|
||||||
} else {
|
} else {
|
||||||
|
// Create the start intent immediately, so we can safely unbind the managerBinder
|
||||||
|
// below before we return.
|
||||||
|
final Intent startIntent = ServerHelper.createStartIntent(ShortcutTrampoline.this,
|
||||||
|
new NvApp("app", Integer.parseInt(appIdString), false), details, managerBinder);
|
||||||
|
|
||||||
UiHelper.displayQuitConfirmationDialog(ShortcutTrampoline.this, new Runnable() {
|
UiHelper.displayQuitConfirmationDialog(ShortcutTrampoline.this, new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
intentStack.add(ServerHelper.createStartIntent(ShortcutTrampoline.this,
|
intentStack.add(startIntent);
|
||||||
new NvApp("app", Integer.parseInt(appIdString), false), details, managerBinder));
|
|
||||||
|
|
||||||
// Close this activity
|
// Close this activity
|
||||||
finish();
|
finish();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user