Merge "Fix issue with app not becoming visible" into oc-mr1-dev

This commit is contained in:
Jorim Jaggi
2017-08-23 11:13:28 +00:00
committed by Android (Google) Code Review

View File

@@ -1684,7 +1684,7 @@ final class ActivityRecord extends ConfigurationContainer implements AppWindowCo
*/
void completeResumeLocked() {
final boolean wasVisible = visible;
visible = true;
setVisible(true);
if (!wasVisible) {
// Visibility has changed, so take a note of it so we call the TaskStackChangedListener
mStackSupervisor.mAppVisibilitiesChangedSinceLastPause = true;