commit | efd9a5ba01be857e837e01fc9a5df24ada19a17b | [log] [tgz] |
---|---|---|
author | Chong Zhang <chz@google.com> | Tue Apr 26 16:21:07 2016 -0700 |
committer | Chong Zhang <chz@google.com> | Tue Apr 26 16:24:24 2016 -0700 |
tree | 5e14efe3d5851a988699b83e9f40638549603671 | |
parent | c71b6302fe368ca2fbd4555177acf3cd157f6340 [diff] |
Finish immediately if the resumed activity is already visible When in FINISH_AFTER_VISIBLE mode, we need to check visibility of both the current activity, and the activity to be resumed. If the resumed activity is already visible, we should finish immediately. We can't put it into stopping state and wait because there won't be a window visible callback from the next activity. bug: 28378359 Change-Id: Ib1fb44acfec33616da76f48102cc00b453e41914