Search in sources :

Example 6 with RecentsVisibilityChangedEvent

use of com.android.systemui.recents.events.component.RecentsVisibilityChangedEvent in project android_frameworks_base by AOSPA.

the class RecentsTvActivity method onStop.

@Override
protected void onStop() {
    super.onStop();
    mIgnoreAltTabRelease = false;
    // Notify that recents is now hidden
    EventBus.getDefault().send(new RecentsVisibilityChangedEvent(this, false));
    // Workaround for b/22542869, if the RecentsActivity is started again, but without going
    // through SystemUI, we need to reset the config launch flags to ensure that we do not
    // wait on the system to send a signal that was never queued.
    RecentsConfiguration config = Recents.getConfiguration();
    RecentsActivityLaunchState launchState = config.getLaunchState();
    launchState.reset();
    // Workaround for b/28333917.
    finish();
}
Also used : RecentsActivityLaunchState(com.android.systemui.recents.RecentsActivityLaunchState) RecentsConfiguration(com.android.systemui.recents.RecentsConfiguration) RecentsVisibilityChangedEvent(com.android.systemui.recents.events.component.RecentsVisibilityChangedEvent)

Example 7 with RecentsVisibilityChangedEvent

use of com.android.systemui.recents.events.component.RecentsVisibilityChangedEvent in project android_frameworks_base by crdroidandroid.

the class RecentsTvActivity method onStop.

@Override
protected void onStop() {
    super.onStop();
    mIgnoreAltTabRelease = false;
    // Notify that recents is now hidden
    EventBus.getDefault().send(new RecentsVisibilityChangedEvent(this, false));
    // Workaround for b/22542869, if the RecentsActivity is started again, but without going
    // through SystemUI, we need to reset the config launch flags to ensure that we do not
    // wait on the system to send a signal that was never queued.
    RecentsConfiguration config = Recents.getConfiguration();
    RecentsActivityLaunchState launchState = config.getLaunchState();
    launchState.reset();
    // Workaround for b/28333917.
    finish();
}
Also used : RecentsActivityLaunchState(com.android.systemui.recents.RecentsActivityLaunchState) RecentsConfiguration(com.android.systemui.recents.RecentsConfiguration) RecentsVisibilityChangedEvent(com.android.systemui.recents.events.component.RecentsVisibilityChangedEvent)

Example 8 with RecentsVisibilityChangedEvent

use of com.android.systemui.recents.events.component.RecentsVisibilityChangedEvent in project android_frameworks_base by crdroidandroid.

the class RecentsActivity method onStart.

@Override
protected void onStart() {
    super.onStart();
    // Notify that recents is now visible
    EventBus.getDefault().send(new RecentsVisibilityChangedEvent(this, true));
    MetricsLogger.visible(this, MetricsEvent.OVERVIEW_ACTIVITY);
    // Notify of the next draw
    mRecentsView.getViewTreeObserver().addOnPreDrawListener(mRecentsDrawnEventListener);
}
Also used : RecentsVisibilityChangedEvent(com.android.systemui.recents.events.component.RecentsVisibilityChangedEvent)

Example 9 with RecentsVisibilityChangedEvent

use of com.android.systemui.recents.events.component.RecentsVisibilityChangedEvent in project android_frameworks_base by AOSPA.

the class RecentsActivity method onStart.

@Override
protected void onStart() {
    super.onStart();
    // Notify that recents is now visible
    EventBus.getDefault().send(new RecentsVisibilityChangedEvent(this, true));
    MetricsLogger.visible(this, MetricsEvent.OVERVIEW_ACTIVITY);
    // Notify of the next draw
    mRecentsView.getViewTreeObserver().addOnPreDrawListener(mRecentsDrawnEventListener);
}
Also used : RecentsVisibilityChangedEvent(com.android.systemui.recents.events.component.RecentsVisibilityChangedEvent)

Example 10 with RecentsVisibilityChangedEvent

use of com.android.systemui.recents.events.component.RecentsVisibilityChangedEvent in project android_frameworks_base by crdroidandroid.

the class RecentsActivity method onStop.

@Override
protected void onStop() {
    super.onStop();
    // Notify that recents is now hidden
    mIsVisible = false;
    mReceivedNewIntent = false;
    EventBus.getDefault().send(new RecentsVisibilityChangedEvent(this, false));
    MetricsLogger.hidden(this, MetricsEvent.OVERVIEW_ACTIVITY);
    // Workaround for b/22542869, if the RecentsActivity is started again, but without going
    // through SystemUI, we need to reset the config launch flags to ensure that we do not
    // wait on the system to send a signal that was never queued.
    RecentsConfiguration config = Recents.getConfiguration();
    RecentsActivityLaunchState launchState = config.getLaunchState();
    launchState.reset();
}
Also used : RecentsVisibilityChangedEvent(com.android.systemui.recents.events.component.RecentsVisibilityChangedEvent)

Aggregations

RecentsVisibilityChangedEvent (com.android.systemui.recents.events.component.RecentsVisibilityChangedEvent)20 RecentsActivityLaunchState (com.android.systemui.recents.RecentsActivityLaunchState)10 RecentsConfiguration (com.android.systemui.recents.RecentsConfiguration)10 View (android.view.View)5 EnterRecentsWindowAnimationCompletedEvent (com.android.systemui.recents.events.activity.EnterRecentsWindowAnimationCompletedEvent)5 DeleteTaskDataEvent (com.android.systemui.recents.events.ui.DeleteTaskDataEvent)5 SystemServicesProxy (com.android.systemui.recents.misc.SystemServicesProxy)5 Task (com.android.systemui.recents.model.Task)5 RecentsTvView (com.android.systemui.recents.tv.views.RecentsTvView)5 TaskCardView (com.android.systemui.recents.tv.views.TaskCardView)5 TaskStackHorizontalGridView (com.android.systemui.recents.tv.views.TaskStackHorizontalGridView)5