Fix race condition between polling return and onPause()

This commit is contained in:
Cameron Gutman 2018-03-20 19:09:59 -07:00
parent 289222749b
commit 17bffa8d78

View File

@ -69,6 +69,13 @@ public class AppViewShortcutTrampoline extends Activity {
blockingLoadSpinner = null;
}
// If the managerBinder was destroyed before this callback,
// just finish the activity.
if (managerBinder == null) {
finish();
return;
}
if (details.state == ComputerDetails.State.ONLINE) {
// Close this activity
finish();