1190fe3bf88388fcb109af64571e3baa0d01f1c37Winson/* 2190fe3bf88388fcb109af64571e3baa0d01f1c37Winson * Copyright (C) 2015 The Android Open Source Project 3190fe3bf88388fcb109af64571e3baa0d01f1c37Winson * 4190fe3bf88388fcb109af64571e3baa0d01f1c37Winson * Licensed under the Apache License, Version 2.0 (the "License"); 5190fe3bf88388fcb109af64571e3baa0d01f1c37Winson * you may not use this file except in compliance with the License. 6190fe3bf88388fcb109af64571e3baa0d01f1c37Winson * You may obtain a copy of the License at 7190fe3bf88388fcb109af64571e3baa0d01f1c37Winson * 8190fe3bf88388fcb109af64571e3baa0d01f1c37Winson * http://www.apache.org/licenses/LICENSE-2.0 9190fe3bf88388fcb109af64571e3baa0d01f1c37Winson * 10190fe3bf88388fcb109af64571e3baa0d01f1c37Winson * Unless required by applicable law or agreed to in writing, software 11190fe3bf88388fcb109af64571e3baa0d01f1c37Winson * distributed under the License is distributed on an "AS IS" BASIS, 12190fe3bf88388fcb109af64571e3baa0d01f1c37Winson * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13190fe3bf88388fcb109af64571e3baa0d01f1c37Winson * See the License for the specific language governing permissions and 14190fe3bf88388fcb109af64571e3baa0d01f1c37Winson * limitations under the License. 15190fe3bf88388fcb109af64571e3baa0d01f1c37Winson */ 16190fe3bf88388fcb109af64571e3baa0d01f1c37Winson 17190fe3bf88388fcb109af64571e3baa0d01f1c37Winsonpackage com.android.systemui.recents.events.component; 18190fe3bf88388fcb109af64571e3baa0d01f1c37Winson 19190fe3bf88388fcb109af64571e3baa0d01f1c37Winsonimport android.content.Context; 20c0d7058b14c24cd07912f5629c26b39b7b4673d5Winson 21190fe3bf88388fcb109af64571e3baa0d01f1c37Winsonimport com.android.systemui.recents.events.EventBus; 22190fe3bf88388fcb109af64571e3baa0d01f1c37Winson 23190fe3bf88388fcb109af64571e3baa0d01f1c37Winson/** 248873754f66527d2cc9feab295dd4eef23298212aWinson * This is sent when the visibility of the RecentsActivity for the current user changes. Handlers 258873754f66527d2cc9feab295dd4eef23298212aWinson * of this event should not alter the UI, as the activity may still be visible. 26190fe3bf88388fcb109af64571e3baa0d01f1c37Winson */ 27190fe3bf88388fcb109af64571e3baa0d01f1c37Winsonpublic class RecentsVisibilityChangedEvent extends EventBus.Event { 28190fe3bf88388fcb109af64571e3baa0d01f1c37Winson 29190fe3bf88388fcb109af64571e3baa0d01f1c37Winson public final Context applicationContext; 30190fe3bf88388fcb109af64571e3baa0d01f1c37Winson public final boolean visible; 31190fe3bf88388fcb109af64571e3baa0d01f1c37Winson 328873754f66527d2cc9feab295dd4eef23298212aWinson public RecentsVisibilityChangedEvent(Context context, boolean visible) { 33190fe3bf88388fcb109af64571e3baa0d01f1c37Winson this.applicationContext = context.getApplicationContext(); 34190fe3bf88388fcb109af64571e3baa0d01f1c37Winson this.visible = visible; 35190fe3bf88388fcb109af64571e3baa0d01f1c37Winson } 36190fe3bf88388fcb109af64571e3baa0d01f1c37Winson} 37