Loading packages/SystemUI/src/com/android/systemui/recents/Recents.java +14 −0 Original line number Diff line number Diff line Loading @@ -54,6 +54,7 @@ import com.android.systemui.plugins.PluginActivityManager; import com.android.systemui.recents.events.EventBus; import com.android.systemui.recents.events.activity.ConfigurationChangedEvent; import com.android.systemui.recents.events.activity.DockedTopTaskEvent; import com.android.systemui.recents.events.activity.LaunchTaskFailedEvent; import com.android.systemui.recents.events.activity.RecentsActivityStartingEvent; import com.android.systemui.recents.events.component.RecentsVisibilityChangedEvent; import com.android.systemui.recents.events.component.ScreenPinningRequestEvent; Loading Loading @@ -613,6 +614,14 @@ public class Recents extends SystemUI } }); } // This will catch the cases when a user launches from recents to another app // (and vice versa) that is not in the recents stack (such as home or bugreport) and it // would not reset the wait for transition flag. This will catch it and make sure that the // flag is reset. if (!event.visible) { mImpl.setWaitingForTransitionStart(false); } } /** Loading Loading @@ -685,6 +694,11 @@ public class Recents extends SystemUI } } public final void onBusEvent(LaunchTaskFailedEvent event) { // Reset the transition when tasks fail to launch mImpl.setWaitingForTransitionStart(false); } public final void onBusEvent(ConfigurationChangedEvent event) { // Update the configuration for the Recents component when the activity configuration // changes as well Loading Loading
packages/SystemUI/src/com/android/systemui/recents/Recents.java +14 −0 Original line number Diff line number Diff line Loading @@ -54,6 +54,7 @@ import com.android.systemui.plugins.PluginActivityManager; import com.android.systemui.recents.events.EventBus; import com.android.systemui.recents.events.activity.ConfigurationChangedEvent; import com.android.systemui.recents.events.activity.DockedTopTaskEvent; import com.android.systemui.recents.events.activity.LaunchTaskFailedEvent; import com.android.systemui.recents.events.activity.RecentsActivityStartingEvent; import com.android.systemui.recents.events.component.RecentsVisibilityChangedEvent; import com.android.systemui.recents.events.component.ScreenPinningRequestEvent; Loading Loading @@ -613,6 +614,14 @@ public class Recents extends SystemUI } }); } // This will catch the cases when a user launches from recents to another app // (and vice versa) that is not in the recents stack (such as home or bugreport) and it // would not reset the wait for transition flag. This will catch it and make sure that the // flag is reset. if (!event.visible) { mImpl.setWaitingForTransitionStart(false); } } /** Loading Loading @@ -685,6 +694,11 @@ public class Recents extends SystemUI } } public final void onBusEvent(LaunchTaskFailedEvent event) { // Reset the transition when tasks fail to launch mImpl.setWaitingForTransitionStart(false); } public final void onBusEvent(ConfigurationChangedEvent event) { // Update the configuration for the Recents component when the activity configuration // changes as well Loading