Sunny Goyal | 740ac7f | 2016-09-28 16:47:32 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2016 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 | |
| 17 | package com.android.launcher3; |
| 18 | |
Sunny Goyal | de75321 | 2018-05-15 13:55:57 -0700 | [diff] [blame] | 19 | import static android.view.accessibility.AccessibilityEvent.TYPE_WINDOW_CONTENT_CHANGED; |
| 20 | import static android.view.accessibility.AccessibilityEvent.TYPE_WINDOW_STATE_CHANGED; |
Tony Wickham | 9791bd1 | 2019-04-05 13:52:35 -0700 | [diff] [blame] | 21 | |
Sunny Goyal | de75321 | 2018-05-15 13:55:57 -0700 | [diff] [blame] | 22 | import static com.android.launcher3.compat.AccessibilityManagerCompat.isAccessibilityEnabled; |
| 23 | import static com.android.launcher3.compat.AccessibilityManagerCompat.sendCustomAccessibilityEvent; |
| 24 | |
Tony Wickham | 50e5165 | 2017-03-20 17:12:24 -0700 | [diff] [blame] | 25 | import android.annotation.SuppressLint; |
Sunny Goyal | 740ac7f | 2016-09-28 16:47:32 -0700 | [diff] [blame] | 26 | import android.content.Context; |
Sunny Goyal | 740ac7f | 2016-09-28 16:47:32 -0700 | [diff] [blame] | 27 | import android.util.AttributeSet; |
Sunny Goyal | de75321 | 2018-05-15 13:55:57 -0700 | [diff] [blame] | 28 | import android.util.Pair; |
Tony Wickham | 50e5165 | 2017-03-20 17:12:24 -0700 | [diff] [blame] | 29 | import android.view.MotionEvent; |
Sunny Goyal | 740ac7f | 2016-09-28 16:47:32 -0700 | [diff] [blame] | 30 | import android.view.View; |
Pinyao Ting | 52d0252 | 2019-09-27 16:29:32 -0700 | [diff] [blame] | 31 | import android.view.accessibility.AccessibilityNodeInfo; |
Sunny Goyal | f3ac703 | 2020-03-13 13:01:33 -0700 | [diff] [blame] | 32 | import android.view.animation.Interpolator; |
Sunny Goyal | 740ac7f | 2016-09-28 16:47:32 -0700 | [diff] [blame] | 33 | import android.widget.LinearLayout; |
| 34 | |
Tony Wickham | 9791bd1 | 2019-04-05 13:52:35 -0700 | [diff] [blame] | 35 | import androidx.annotation.IntDef; |
Tony Wickham | 9791bd1 | 2019-04-05 13:52:35 -0700 | [diff] [blame] | 36 | |
Sunny Goyal | f3ac703 | 2020-03-13 13:01:33 -0700 | [diff] [blame] | 37 | import com.android.launcher3.anim.PendingAnimation; |
Sunny Goyal | 3792096 | 2017-09-28 13:43:24 -0700 | [diff] [blame] | 38 | import com.android.launcher3.userevent.nano.LauncherLogProto.Action; |
Tony Wickham | 9791bd1 | 2019-04-05 13:52:35 -0700 | [diff] [blame] | 39 | import com.android.launcher3.userevent.nano.LauncherLogProto.ContainerType; |
Sunny Goyal | 3792096 | 2017-09-28 13:43:24 -0700 | [diff] [blame] | 40 | import com.android.launcher3.util.TouchController; |
Sunny Goyal | 87b5eb6 | 2018-07-03 15:53:39 -0700 | [diff] [blame] | 41 | import com.android.launcher3.views.ActivityContext; |
Sunny Goyal | 0b0847b | 2018-03-14 12:30:11 -0700 | [diff] [blame] | 42 | import com.android.launcher3.views.BaseDragLayer; |
Sunny Goyal | 740ac7f | 2016-09-28 16:47:32 -0700 | [diff] [blame] | 43 | |
| 44 | import java.lang.annotation.Retention; |
| 45 | import java.lang.annotation.RetentionPolicy; |
| 46 | |
| 47 | /** |
| 48 | * Base class for a View which shows a floating UI on top of the launcher UI. |
| 49 | */ |
Sunny Goyal | 3792096 | 2017-09-28 13:43:24 -0700 | [diff] [blame] | 50 | public abstract class AbstractFloatingView extends LinearLayout implements TouchController { |
Sunny Goyal | 740ac7f | 2016-09-28 16:47:32 -0700 | [diff] [blame] | 51 | |
Tony Wickham | 50e5165 | 2017-03-20 17:12:24 -0700 | [diff] [blame] | 52 | @IntDef(flag = true, value = { |
| 53 | TYPE_FOLDER, |
Sunny Goyal | 10a1bd0 | 2017-10-09 14:56:21 -0700 | [diff] [blame] | 54 | TYPE_ACTION_POPUP, |
Sunny Goyal | 3792096 | 2017-09-28 13:43:24 -0700 | [diff] [blame] | 55 | TYPE_WIDGETS_BOTTOM_SHEET, |
Sunny Goyal | f1fbc3f | 2017-10-10 15:21:15 -0700 | [diff] [blame] | 56 | TYPE_WIDGET_RESIZE_FRAME, |
Sunny Goyal | f8088ee | 2017-11-10 14:52:00 -0800 | [diff] [blame] | 57 | TYPE_WIDGETS_FULL_SHEET, |
Tony Wickham | 2fae2a0 | 2017-12-14 18:38:25 -0800 | [diff] [blame] | 58 | TYPE_ON_BOARD_POPUP, |
Vadim Tryshev | 17839d5 | 2018-05-23 14:45:56 -0700 | [diff] [blame] | 59 | TYPE_DISCOVERY_BOUNCE, |
Tony Wickham | 6a71a5b | 2018-08-21 11:40:23 -0700 | [diff] [blame] | 60 | TYPE_SNACKBAR, |
Jon Miranda | de0093d | 2019-04-16 20:53:24 -0700 | [diff] [blame] | 61 | TYPE_LISTENER, |
Sunny Goyal | 02424b2 | 2018-01-19 11:24:32 -0800 | [diff] [blame] | 62 | |
Sunny Goyal | 02424b2 | 2018-01-19 11:24:32 -0800 | [diff] [blame] | 63 | TYPE_TASK_MENU, |
| 64 | TYPE_OPTIONS_POPUP |
Tony Wickham | 50e5165 | 2017-03-20 17:12:24 -0700 | [diff] [blame] | 65 | }) |
Sunny Goyal | 740ac7f | 2016-09-28 16:47:32 -0700 | [diff] [blame] | 66 | @Retention(RetentionPolicy.SOURCE) |
| 67 | public @interface FloatingViewType {} |
| 68 | public static final int TYPE_FOLDER = 1 << 0; |
Sunny Goyal | 10a1bd0 | 2017-10-09 14:56:21 -0700 | [diff] [blame] | 69 | public static final int TYPE_ACTION_POPUP = 1 << 1; |
Tony Wickham | 343a77e | 2017-04-12 18:31:09 -0700 | [diff] [blame] | 70 | public static final int TYPE_WIDGETS_BOTTOM_SHEET = 1 << 2; |
Sunny Goyal | 3792096 | 2017-09-28 13:43:24 -0700 | [diff] [blame] | 71 | public static final int TYPE_WIDGET_RESIZE_FRAME = 1 << 3; |
Sunny Goyal | f1fbc3f | 2017-10-10 15:21:15 -0700 | [diff] [blame] | 72 | public static final int TYPE_WIDGETS_FULL_SHEET = 1 << 4; |
Sunny Goyal | 02424b2 | 2018-01-19 11:24:32 -0800 | [diff] [blame] | 73 | public static final int TYPE_ON_BOARD_POPUP = 1 << 5; |
Vadim Tryshev | 17839d5 | 2018-05-23 14:45:56 -0700 | [diff] [blame] | 74 | public static final int TYPE_DISCOVERY_BOUNCE = 1 << 6; |
Tony Wickham | 6a71a5b | 2018-08-21 11:40:23 -0700 | [diff] [blame] | 75 | public static final int TYPE_SNACKBAR = 1 << 7; |
Jon Miranda | de0093d | 2019-04-16 20:53:24 -0700 | [diff] [blame] | 76 | public static final int TYPE_LISTENER = 1 << 8; |
Sunny Goyal | 02424b2 | 2018-01-19 11:24:32 -0800 | [diff] [blame] | 77 | |
| 78 | // Popups related to quickstep UI |
Jon Miranda | de0093d | 2019-04-16 20:53:24 -0700 | [diff] [blame] | 79 | public static final int TYPE_TASK_MENU = 1 << 9; |
| 80 | public static final int TYPE_OPTIONS_POPUP = 1 << 10; |
Sunny Goyal | f1fbc3f | 2017-10-10 15:21:15 -0700 | [diff] [blame] | 81 | |
| 82 | public static final int TYPE_ALL = TYPE_FOLDER | TYPE_ACTION_POPUP |
Sunny Goyal | f8088ee | 2017-11-10 14:52:00 -0800 | [diff] [blame] | 83 | | TYPE_WIDGETS_BOTTOM_SHEET | TYPE_WIDGET_RESIZE_FRAME | TYPE_WIDGETS_FULL_SHEET |
Sunny Goyal | 462551b | 2019-02-18 14:42:47 -0800 | [diff] [blame] | 84 | | TYPE_ON_BOARD_POPUP | TYPE_DISCOVERY_BOUNCE | TYPE_TASK_MENU |
Jon Miranda | de0093d | 2019-04-16 20:53:24 -0700 | [diff] [blame] | 85 | | TYPE_OPTIONS_POPUP | TYPE_SNACKBAR | TYPE_LISTENER; |
Sunny Goyal | 740ac7f | 2016-09-28 16:47:32 -0700 | [diff] [blame] | 86 | |
Sunny Goyal | 7ede611 | 2017-12-05 15:11:21 -0800 | [diff] [blame] | 87 | // Type of popups which should be kept open during launcher rebind |
| 88 | public static final int TYPE_REBIND_SAFE = TYPE_WIDGETS_FULL_SHEET |
Pinyao Ting | a74b63a | 2019-07-17 23:26:06 -0700 | [diff] [blame] | 89 | | TYPE_WIDGETS_BOTTOM_SHEET | TYPE_ON_BOARD_POPUP | TYPE_DISCOVERY_BOUNCE; |
Sunny Goyal | 7ede611 | 2017-12-05 15:11:21 -0800 | [diff] [blame] | 90 | |
Tony Wickham | df1eb8b | 2018-04-12 17:26:18 -0700 | [diff] [blame] | 91 | // Usually we show the back button when a floating view is open. Instead, hide for these types. |
Tony Wickham | 6a71a5b | 2018-08-21 11:40:23 -0700 | [diff] [blame] | 92 | public static final int TYPE_HIDE_BACK_BUTTON = TYPE_ON_BOARD_POPUP | TYPE_DISCOVERY_BOUNCE |
Tony | f941f84 | 2019-05-13 11:15:54 -0500 | [diff] [blame] | 93 | | TYPE_SNACKBAR | TYPE_WIDGET_RESIZE_FRAME | TYPE_LISTENER; |
Vadim Tryshev | 17839d5 | 2018-05-23 14:45:56 -0700 | [diff] [blame] | 94 | |
Jon Miranda | de0093d | 2019-04-16 20:53:24 -0700 | [diff] [blame] | 95 | public static final int TYPE_ACCESSIBLE = TYPE_ALL & ~TYPE_DISCOVERY_BOUNCE & ~TYPE_LISTENER; |
Tony Wickham | df1eb8b | 2018-04-12 17:26:18 -0700 | [diff] [blame] | 96 | |
Hyunyoung Song | f58cf5e | 2018-09-19 16:06:16 -0700 | [diff] [blame] | 97 | // These view all have particular operation associated with swipe down interaction. |
| 98 | public static final int TYPE_STATUS_BAR_SWIPE_DOWN_DISALLOW = TYPE_WIDGETS_BOTTOM_SHEET | |
| 99 | TYPE_WIDGETS_FULL_SHEET | TYPE_WIDGET_RESIZE_FRAME | TYPE_ON_BOARD_POPUP | |
| 100 | TYPE_DISCOVERY_BOUNCE | TYPE_TASK_MENU ; |
| 101 | |
Sunny Goyal | 740ac7f | 2016-09-28 16:47:32 -0700 | [diff] [blame] | 102 | protected boolean mIsOpen; |
| 103 | |
| 104 | public AbstractFloatingView(Context context, AttributeSet attrs) { |
| 105 | super(context, attrs); |
| 106 | } |
| 107 | |
| 108 | public AbstractFloatingView(Context context, AttributeSet attrs, int defStyleAttr) { |
| 109 | super(context, attrs, defStyleAttr); |
| 110 | } |
| 111 | |
Tony Wickham | 50e5165 | 2017-03-20 17:12:24 -0700 | [diff] [blame] | 112 | /** |
| 113 | * We need to handle touch events to prevent them from falling through to the workspace below. |
| 114 | */ |
| 115 | @SuppressLint("ClickableViewAccessibility") |
| 116 | @Override |
| 117 | public boolean onTouchEvent(MotionEvent ev) { |
| 118 | return true; |
| 119 | } |
| 120 | |
Sunny Goyal | 740ac7f | 2016-09-28 16:47:32 -0700 | [diff] [blame] | 121 | public final void close(boolean animate) { |
Sunny Goyal | 7368fa4 | 2019-04-22 09:58:14 -0700 | [diff] [blame] | 122 | animate &= Utilities.areAnimationsEnabled(getContext()); |
Hyunyoung Song | bd6fba9 | 2018-05-16 15:54:31 -0700 | [diff] [blame] | 123 | if (mIsOpen) { |
| 124 | BaseActivity.fromContext(getContext()).getUserEventDispatcher() |
| 125 | .resetElapsedContainerMillis("container closed"); |
| 126 | } |
Sunny Goyal | 740ac7f | 2016-09-28 16:47:32 -0700 | [diff] [blame] | 127 | handleClose(animate); |
Jon Miranda | 83337f9 | 2018-04-24 12:21:28 -0700 | [diff] [blame] | 128 | mIsOpen = false; |
Sunny Goyal | 740ac7f | 2016-09-28 16:47:32 -0700 | [diff] [blame] | 129 | } |
| 130 | |
| 131 | protected abstract void handleClose(boolean animate); |
| 132 | |
Tony Wickham | 9791bd1 | 2019-04-05 13:52:35 -0700 | [diff] [blame] | 133 | /** |
| 134 | * Creates a user-controlled animation to hint that the view will be closed if completed. |
| 135 | * @param distanceToMove The max distance that elements should move from their starting point. |
| 136 | */ |
Sunny Goyal | f3ac703 | 2020-03-13 13:01:33 -0700 | [diff] [blame] | 137 | public void addHintCloseAnim( |
| 138 | float distanceToMove, Interpolator interpolator, PendingAnimation target) { } |
Tony Wickham | 9791bd1 | 2019-04-05 13:52:35 -0700 | [diff] [blame] | 139 | |
Sunny Goyal | 3792096 | 2017-09-28 13:43:24 -0700 | [diff] [blame] | 140 | public abstract void logActionCommand(int command); |
Sunny Goyal | 740ac7f | 2016-09-28 16:47:32 -0700 | [diff] [blame] | 141 | |
Tony Wickham | 9791bd1 | 2019-04-05 13:52:35 -0700 | [diff] [blame] | 142 | public int getLogContainerType() { |
| 143 | return ContainerType.DEFAULT_CONTAINERTYPE; |
| 144 | } |
| 145 | |
Sunny Goyal | 740ac7f | 2016-09-28 16:47:32 -0700 | [diff] [blame] | 146 | public final boolean isOpen() { |
| 147 | return mIsOpen; |
| 148 | } |
| 149 | |
| 150 | protected abstract boolean isOfType(@FloatingViewType int type); |
| 151 | |
Tony Wickham | 52c1b66 | 2018-05-21 13:13:58 -0700 | [diff] [blame] | 152 | /** @return Whether the back is consumed. If false, Launcher will handle the back as well. */ |
| 153 | public boolean onBackPressed() { |
Sunny Goyal | 3792096 | 2017-09-28 13:43:24 -0700 | [diff] [blame] | 154 | logActionCommand(Action.Command.BACK); |
| 155 | close(true); |
Tony Wickham | 52c1b66 | 2018-05-21 13:13:58 -0700 | [diff] [blame] | 156 | return true; |
Sunny Goyal | 3792096 | 2017-09-28 13:43:24 -0700 | [diff] [blame] | 157 | } |
| 158 | |
| 159 | @Override |
| 160 | public boolean onControllerTouchEvent(MotionEvent ev) { |
| 161 | return false; |
| 162 | } |
| 163 | |
Sunny Goyal | de75321 | 2018-05-15 13:55:57 -0700 | [diff] [blame] | 164 | protected void announceAccessibilityChanges() { |
| 165 | Pair<View, String> targetInfo = getAccessibilityTarget(); |
| 166 | if (targetInfo == null || !isAccessibilityEnabled(getContext())) { |
| 167 | return; |
| 168 | } |
| 169 | sendCustomAccessibilityEvent( |
| 170 | targetInfo.first, TYPE_WINDOW_STATE_CHANGED, targetInfo.second); |
| 171 | |
| 172 | if (mIsOpen) { |
Pinyao Ting | 52d0252 | 2019-09-27 16:29:32 -0700 | [diff] [blame] | 173 | performAccessibilityAction(AccessibilityNodeInfo.ACTION_ACCESSIBILITY_FOCUS, null); |
Sunny Goyal | de75321 | 2018-05-15 13:55:57 -0700 | [diff] [blame] | 174 | } |
Sunny Goyal | 87b5eb6 | 2018-07-03 15:53:39 -0700 | [diff] [blame] | 175 | ActivityContext.lookupContext(getContext()).getDragLayer() |
Sunny Goyal | de75321 | 2018-05-15 13:55:57 -0700 | [diff] [blame] | 176 | .sendAccessibilityEvent(TYPE_WINDOW_CONTENT_CHANGED); |
| 177 | } |
| 178 | |
| 179 | protected Pair<View, String> getAccessibilityTarget() { |
| 180 | return null; |
| 181 | } |
| 182 | |
Samuel Fufa | 82bbdac | 2020-03-09 18:24:47 -0700 | [diff] [blame^] | 183 | /** |
| 184 | * Returns a view matching FloatingViewType |
| 185 | */ |
| 186 | public static <T extends AbstractFloatingView> T getOpenView( |
Sunny Goyal | 87b5eb6 | 2018-07-03 15:53:39 -0700 | [diff] [blame] | 187 | ActivityContext activity, @FloatingViewType int type) { |
Sunny Goyal | 0b0847b | 2018-03-14 12:30:11 -0700 | [diff] [blame] | 188 | BaseDragLayer dragLayer = activity.getDragLayer(); |
vadimt | 5a22ef7 | 2019-04-17 18:39:00 -0700 | [diff] [blame] | 189 | if (dragLayer == null) return null; |
Sunny Goyal | 740ac7f | 2016-09-28 16:47:32 -0700 | [diff] [blame] | 190 | // Iterate in reverse order. AbstractFloatingView is added later to the dragLayer, |
| 191 | // and will be one of the last views. |
| 192 | for (int i = dragLayer.getChildCount() - 1; i >= 0; i--) { |
| 193 | View child = dragLayer.getChildAt(i); |
| 194 | if (child instanceof AbstractFloatingView) { |
| 195 | AbstractFloatingView view = (AbstractFloatingView) child; |
| 196 | if (view.isOfType(type) && view.isOpen()) { |
| 197 | return (T) view; |
| 198 | } |
| 199 | } |
| 200 | } |
| 201 | return null; |
| 202 | } |
| 203 | |
Sunny Goyal | 87b5eb6 | 2018-07-03 15:53:39 -0700 | [diff] [blame] | 204 | public static void closeOpenContainer(ActivityContext activity, |
Sunny Goyal | 0b0847b | 2018-03-14 12:30:11 -0700 | [diff] [blame] | 205 | @FloatingViewType int type) { |
| 206 | AbstractFloatingView view = getOpenView(activity, type); |
Sunny Goyal | 740ac7f | 2016-09-28 16:47:32 -0700 | [diff] [blame] | 207 | if (view != null) { |
| 208 | view.close(true); |
| 209 | } |
| 210 | } |
| 211 | |
Sunny Goyal | 87b5eb6 | 2018-07-03 15:53:39 -0700 | [diff] [blame] | 212 | public static void closeOpenViews(ActivityContext activity, boolean animate, |
Sunny Goyal | f1fbc3f | 2017-10-10 15:21:15 -0700 | [diff] [blame] | 213 | @FloatingViewType int type) { |
Sunny Goyal | 0b0847b | 2018-03-14 12:30:11 -0700 | [diff] [blame] | 214 | BaseDragLayer dragLayer = activity.getDragLayer(); |
Sunny Goyal | 740ac7f | 2016-09-28 16:47:32 -0700 | [diff] [blame] | 215 | // Iterate in reverse order. AbstractFloatingView is added later to the dragLayer, |
| 216 | // and will be one of the last views. |
| 217 | for (int i = dragLayer.getChildCount() - 1; i >= 0; i--) { |
| 218 | View child = dragLayer.getChildAt(i); |
| 219 | if (child instanceof AbstractFloatingView) { |
Sunny Goyal | f1fbc3f | 2017-10-10 15:21:15 -0700 | [diff] [blame] | 220 | AbstractFloatingView abs = (AbstractFloatingView) child; |
| 221 | if (abs.isOfType(type)) { |
| 222 | abs.close(animate); |
| 223 | } |
Sunny Goyal | 740ac7f | 2016-09-28 16:47:32 -0700 | [diff] [blame] | 224 | } |
| 225 | } |
| 226 | } |
| 227 | |
Sunny Goyal | 87b5eb6 | 2018-07-03 15:53:39 -0700 | [diff] [blame] | 228 | public static void closeAllOpenViews(ActivityContext activity, boolean animate) { |
Sunny Goyal | 0b0847b | 2018-03-14 12:30:11 -0700 | [diff] [blame] | 229 | closeOpenViews(activity, animate, TYPE_ALL); |
| 230 | activity.finishAutoCancelActionMode(); |
Sunny Goyal | f1fbc3f | 2017-10-10 15:21:15 -0700 | [diff] [blame] | 231 | } |
| 232 | |
Sunny Goyal | 87b5eb6 | 2018-07-03 15:53:39 -0700 | [diff] [blame] | 233 | public static void closeAllOpenViews(ActivityContext activity) { |
Sunny Goyal | 0b0847b | 2018-03-14 12:30:11 -0700 | [diff] [blame] | 234 | closeAllOpenViews(activity, true); |
Sunny Goyal | 740ac7f | 2016-09-28 16:47:32 -0700 | [diff] [blame] | 235 | } |
| 236 | |
Tracy Zhou | d43e7c2 | 2018-10-16 14:49:55 -0700 | [diff] [blame] | 237 | public static void closeAllOpenViewsExcept(ActivityContext activity, boolean animate, |
| 238 | @FloatingViewType int type) { |
| 239 | closeOpenViews(activity, animate, TYPE_ALL & ~type); |
| 240 | activity.finishAutoCancelActionMode(); |
| 241 | } |
| 242 | |
| 243 | public static void closeAllOpenViewsExcept(ActivityContext activity, |
| 244 | @FloatingViewType int type) { |
| 245 | closeAllOpenViewsExcept(activity, true, type); |
| 246 | } |
| 247 | |
Sunny Goyal | 87b5eb6 | 2018-07-03 15:53:39 -0700 | [diff] [blame] | 248 | public static AbstractFloatingView getTopOpenView(ActivityContext activity) { |
Tony Wickham | df1eb8b | 2018-04-12 17:26:18 -0700 | [diff] [blame] | 249 | return getTopOpenViewWithType(activity, TYPE_ALL); |
| 250 | } |
| 251 | |
Sunny Goyal | 87b5eb6 | 2018-07-03 15:53:39 -0700 | [diff] [blame] | 252 | public static AbstractFloatingView getTopOpenViewWithType(ActivityContext activity, |
Tony Wickham | df1eb8b | 2018-04-12 17:26:18 -0700 | [diff] [blame] | 253 | @FloatingViewType int type) { |
| 254 | return getOpenView(activity, type); |
Sunny Goyal | 740ac7f | 2016-09-28 16:47:32 -0700 | [diff] [blame] | 255 | } |
Sunny Goyal | 740ac7f | 2016-09-28 16:47:32 -0700 | [diff] [blame] | 256 | } |