• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2017 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 package com.android.launcher3.uioverrides.states;
17 
18 import static com.android.launcher3.LauncherAnimUtils.OVERVIEW_TRANSITION_MS;
19 
20 import com.android.launcher3.LauncherState;
21 import com.android.launcher3.userevent.nano.LauncherLogProto.ContainerType;
22 
23 /**
24  * Definition for overview state
25  */
26 public class OverviewState extends LauncherState {
27 
OverviewState(int id)28     public OverviewState(int id) {
29         super(id, ContainerType.WORKSPACE, OVERVIEW_TRANSITION_MS, FLAG_DISABLE_RESTORE);
30     }
31 
newBackgroundState(int id)32     public static OverviewState newBackgroundState(int id) {
33         return new OverviewState(id);
34     }
35 
newPeekState(int id)36     public static OverviewState newPeekState(int id) {
37         return new OverviewState(id);
38     }
39 
newSwitchState(int id)40     public static OverviewState newSwitchState(int id) {
41         return new OverviewState(id);
42     }
43 }
44