blob: 98ecf3a7e6ed7893fd3b271093d4ab303b0a43c2 [file] [log] [blame]
Sunny Goyal47328fd2016-05-25 18:56:41 -07001/*
2 * Copyright (C) 2011 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
17package com.android.launcher3;
18
Sunny Goyald1b3f5c2018-01-18 17:14:05 -080019import static com.android.launcher3.ButtonDropTarget.TOOLTIP_DEFAULT;
Sunny Goyal7185dd62018-03-14 17:51:49 -070020import static com.android.launcher3.anim.AlphaUpdateListener.updateVisibility;
Sunny Goyal0236d0b2017-10-24 14:54:30 -070021
Sunny Goyal47328fd2016-05-25 18:56:41 -070022import android.animation.TimeInterpolator;
23import android.content.Context;
Sunny Goyal07b69292018-01-08 14:19:34 -080024import android.graphics.Rect;
Sunny Goyal47328fd2016-05-25 18:56:41 -070025import android.util.AttributeSet;
vadimt89d94232021-09-01 12:33:00 -070026import android.util.Log;
Alex Chaua02eddc2021-04-29 00:36:06 +010027import android.util.TypedValue;
Sunny Goyal07b69292018-01-08 14:19:34 -080028import android.view.Gravity;
Sunny Goyal47328fd2016-05-25 18:56:41 -070029import android.view.View;
30import android.view.ViewDebug;
31import android.view.ViewPropertyAnimator;
Sunny Goyal07b69292018-01-08 14:19:34 -080032import android.widget.FrameLayout;
Sunny Goyal47328fd2016-05-25 18:56:41 -070033
vadimt89d94232021-09-01 12:33:00 -070034import androidx.annotation.NonNull;
35
Sunny Goyal5bc6b6f2017-10-26 15:36:10 -070036import com.android.launcher3.anim.Interpolators;
Sunny Goyal47328fd2016-05-25 18:56:41 -070037import com.android.launcher3.dragndrop.DragController;
Sunny Goyal07b69292018-01-08 14:19:34 -080038import com.android.launcher3.dragndrop.DragController.DragListener;
Sunny Goyal94b510c2016-08-16 15:36:48 -070039import com.android.launcher3.dragndrop.DragOptions;
vadimtf6ef8792022-07-26 13:54:31 -070040import com.android.launcher3.testing.shared.TestProtocol;
Sunny Goyal47328fd2016-05-25 18:56:41 -070041
42/*
43 * The top bar containing various drop targets: Delete/App Info/Uninstall.
44 */
Sunny Goyald1b3f5c2018-01-18 17:14:05 -080045public class DropTargetBar extends FrameLayout
Sunny Goyal07b69292018-01-08 14:19:34 -080046 implements DragListener, Insettable {
Sunny Goyal47328fd2016-05-25 18:56:41 -070047
48 protected static final int DEFAULT_DRAG_FADE_DURATION = 175;
Sunny Goyal5bc6b6f2017-10-26 15:36:10 -070049 protected static final TimeInterpolator DEFAULT_INTERPOLATOR = Interpolators.ACCEL;
Sunny Goyal47328fd2016-05-25 18:56:41 -070050
Sunny Goyal07b69292018-01-08 14:19:34 -080051 private final Runnable mFadeAnimationEndRunnable =
Sunny Goyal18d71842018-03-27 13:44:00 -070052 () -> updateVisibility(DropTargetBar.this);
Sunny Goyal47328fd2016-05-25 18:56:41 -070053
Alex Chau906d8822022-05-23 10:42:25 +010054 private final Launcher mLauncher;
55
Sunny Goyal47328fd2016-05-25 18:56:41 -070056 @ViewDebug.ExportedProperty(category = "launcher")
57 protected boolean mDeferOnDragEnd;
58
59 @ViewDebug.ExportedProperty(category = "launcher")
60 protected boolean mVisible = false;
61
Sunny Goyal0236d0b2017-10-24 14:54:30 -070062 private ButtonDropTarget[] mDropTargets;
Alex Chau906d8822022-05-23 10:42:25 +010063 private ButtonDropTarget[] mTempTargets;
Sunny Goyal47328fd2016-05-25 18:56:41 -070064 private ViewPropertyAnimator mCurrentAnimation;
65
Sunny Goyald1b3f5c2018-01-18 17:14:05 -080066 private boolean mIsVertical = true;
67
Sunny Goyal47328fd2016-05-25 18:56:41 -070068 public DropTargetBar(Context context, AttributeSet attrs) {
69 super(context, attrs);
Alex Chau906d8822022-05-23 10:42:25 +010070 mLauncher = Launcher.getLauncher(context);
Sunny Goyal47328fd2016-05-25 18:56:41 -070071 }
72
73 public DropTargetBar(Context context, AttributeSet attrs, int defStyle) {
74 super(context, attrs, defStyle);
Alex Chau906d8822022-05-23 10:42:25 +010075 mLauncher = Launcher.getLauncher(context);
Sunny Goyal47328fd2016-05-25 18:56:41 -070076 }
77
78 @Override
79 protected void onFinishInflate() {
80 super.onFinishInflate();
Sunny Goyald1b3f5c2018-01-18 17:14:05 -080081 mDropTargets = new ButtonDropTarget[getChildCount()];
82 for (int i = 0; i < mDropTargets.length; i++) {
83 mDropTargets[i] = (ButtonDropTarget) getChildAt(i);
84 mDropTargets[i].setDropTargetBar(this);
85 }
Alex Chau906d8822022-05-23 10:42:25 +010086 mTempTargets = new ButtonDropTarget[getChildCount()];
Sunny Goyal47328fd2016-05-25 18:56:41 -070087 }
88
Sunny Goyal07b69292018-01-08 14:19:34 -080089 @Override
90 public void setInsets(Rect insets) {
91 FrameLayout.LayoutParams lp = (FrameLayout.LayoutParams) getLayoutParams();
Alex Chau906d8822022-05-23 10:42:25 +010092 DeviceProfile grid = mLauncher.getDeviceProfile();
Sunny Goyald1b3f5c2018-01-18 17:14:05 -080093 mIsVertical = grid.isVerticalBarLayout();
Sunny Goyal07b69292018-01-08 14:19:34 -080094
95 lp.leftMargin = insets.left;
96 lp.topMargin = insets.top;
97 lp.bottomMargin = insets.bottom;
98 lp.rightMargin = insets.right;
Sunny Goyald1b3f5c2018-01-18 17:14:05 -080099 int tooltipLocation = TOOLTIP_DEFAULT;
Sunny Goyal07b69292018-01-08 14:19:34 -0800100
Pat Manningde25c0d2022-04-05 19:11:26 +0100101 int horizontalMargin;
102 if (grid.isTablet) {
103 // XXX: If the icon size changes across orientations, we will have to take
104 // that into account here too.
105 horizontalMargin = ((grid.widthPx - 2 * grid.edgeMarginPx
106 - (grid.inv.numColumns * grid.cellWidthPx))
107 / (2 * (grid.inv.numColumns + 1)))
108 + grid.edgeMarginPx;
Sunny Goyal07b69292018-01-08 14:19:34 -0800109 } else {
Pat Manningde25c0d2022-04-05 19:11:26 +0100110 horizontalMargin = getContext().getResources()
111 .getDimensionPixelSize(R.dimen.drop_target_bar_margin_horizontal);
Pat Manninge3723662022-03-25 16:07:46 +0000112 }
Pat Manningde25c0d2022-04-05 19:11:26 +0100113 lp.topMargin += grid.dropTargetBarTopMarginPx;
114 lp.bottomMargin += grid.dropTargetBarBottomMarginPx;
115 lp.width = grid.availableWidthPx - 2 * horizontalMargin;
116 if (mIsVertical) {
117 lp.leftMargin = (grid.widthPx - lp.width) / 2;
118 lp.rightMargin = (grid.widthPx - lp.width) / 2;
119 }
120 lp.height = grid.dropTargetBarSizePx;
fbarone74256b2023-04-10 14:50:31 -0700121 lp.gravity = Gravity.CENTER_HORIZONTAL | Gravity.TOP;
Pat Manningde25c0d2022-04-05 19:11:26 +0100122
Alex Chau906d8822022-05-23 10:42:25 +0100123 DeviceProfile dp = mLauncher.getDeviceProfile();
124 int horizontalPadding = dp.dropTargetHorizontalPaddingPx;
125 int verticalPadding = dp.dropTargetVerticalPaddingPx;
Sunny Goyal07b69292018-01-08 14:19:34 -0800126 setLayoutParams(lp);
Sunny Goyald1b3f5c2018-01-18 17:14:05 -0800127 for (ButtonDropTarget button : mDropTargets) {
Alex Chaua02eddc2021-04-29 00:36:06 +0100128 button.setTextSize(TypedValue.COMPLEX_UNIT_PX, grid.dropTargetTextSizePx);
Sunny Goyald1b3f5c2018-01-18 17:14:05 -0800129 button.setToolTipLocation(tooltipLocation);
Alex Chau906d8822022-05-23 10:42:25 +0100130 button.setPadding(horizontalPadding, verticalPadding, horizontalPadding,
131 verticalPadding);
Sunny Goyald1b3f5c2018-01-18 17:14:05 -0800132 }
Sunny Goyal07b69292018-01-08 14:19:34 -0800133 }
134
Sunny Goyal47328fd2016-05-25 18:56:41 -0700135 public void setup(DragController dragController) {
136 dragController.addDragListener(this);
Sunny Goyal0236d0b2017-10-24 14:54:30 -0700137 for (int i = 0; i < mDropTargets.length; i++) {
Sunny Goyal0236d0b2017-10-24 14:54:30 -0700138 dragController.addDragListener(mDropTargets[i]);
139 dragController.addDropTarget(mDropTargets[i]);
140 }
141 }
142
Jon Mirandabfaa4a42017-08-21 15:31:51 -0700143 @Override
144 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
Sunny Goyald1b3f5c2018-01-18 17:14:05 -0800145 int width = MeasureSpec.getSize(widthMeasureSpec);
146 int height = MeasureSpec.getSize(heightMeasureSpec);
Alex Chau906d8822022-05-23 10:42:25 +0100147 int heightSpec = MeasureSpec.makeMeasureSpec(height, MeasureSpec.EXACTLY);
Jon Mirandabfaa4a42017-08-21 15:31:51 -0700148
Alex Chau906d8822022-05-23 10:42:25 +0100149 int visibleCount = getVisibleButtons(mTempTargets);
150 if (visibleCount == 1) {
151 int widthSpec = MeasureSpec.makeMeasureSpec(width, MeasureSpec.AT_MOST);
Pat Manning27bfcaa2022-04-25 13:50:28 +0100152
Alex Chau906d8822022-05-23 10:42:25 +0100153 ButtonDropTarget firstButton = mTempTargets[0];
Pat Manninge63dd252022-08-02 16:15:29 +0100154 firstButton.setTextSize(TypedValue.COMPLEX_UNIT_PX,
155 mLauncher.getDeviceProfile().dropTargetTextSizePx);
Alex Chau906d8822022-05-23 10:42:25 +0100156 firstButton.setTextVisible(true);
157 firstButton.setIconVisible(true);
158 firstButton.measure(widthSpec, heightSpec);
159 } else if (visibleCount == 2) {
160 DeviceProfile dp = mLauncher.getDeviceProfile();
161 int verticalPadding = dp.dropTargetVerticalPaddingPx;
162 int horizontalPadding = dp.dropTargetHorizontalPaddingPx;
163
164 ButtonDropTarget firstButton = mTempTargets[0];
Pat Manninge63dd252022-08-02 16:15:29 +0100165 firstButton.setTextSize(TypedValue.COMPLEX_UNIT_PX, dp.dropTargetTextSizePx);
Alex Chau906d8822022-05-23 10:42:25 +0100166 firstButton.setTextVisible(true);
167 firstButton.setIconVisible(true);
168 firstButton.setTextMultiLine(false);
Pat Manninge63dd252022-08-02 16:15:29 +0100169 // Reset first button padding in case it was previously changed to multi-line text.
Alex Chau906d8822022-05-23 10:42:25 +0100170 firstButton.setPadding(horizontalPadding, verticalPadding, horizontalPadding,
171 verticalPadding);
172
173 ButtonDropTarget secondButton = mTempTargets[1];
Pat Manninge63dd252022-08-02 16:15:29 +0100174 secondButton.setTextSize(TypedValue.COMPLEX_UNIT_PX, dp.dropTargetTextSizePx);
Alex Chau906d8822022-05-23 10:42:25 +0100175 secondButton.setTextVisible(true);
176 secondButton.setIconVisible(true);
177 secondButton.setTextMultiLine(false);
178 // Reset second button padding in case it was previously changed to multi-line text.
179 secondButton.setPadding(horizontalPadding, verticalPadding, horizontalPadding,
180 verticalPadding);
181
Alex Chau906d8822022-05-23 10:42:25 +0100182 int availableWidth;
183 if (dp.isTwoPanels) {
Pat Manninge63dd252022-08-02 16:15:29 +0100184 // Each button for two panel fits to half the width of the screen excluding the
185 // center gap between the buttons.
186 availableWidth = (dp.availableWidthPx - dp.dropTargetGapPx) / 2;
Alex Chau906d8822022-05-23 10:42:25 +0100187 } else {
Pat Manninge63dd252022-08-02 16:15:29 +0100188 // Both buttons plus the button gap do not display past the edge of the screen.
189 availableWidth = dp.availableWidthPx - dp.dropTargetGapPx;
Pat Manningb29dabc2022-05-20 15:21:48 +0000190 }
Pat Manning27bfcaa2022-04-25 13:50:28 +0100191
Pat Manningb29dabc2022-05-20 15:21:48 +0000192 int widthSpec = MeasureSpec.makeMeasureSpec(availableWidth, MeasureSpec.AT_MOST);
Alex Chau906d8822022-05-23 10:42:25 +0100193 firstButton.measure(widthSpec, heightSpec);
Alex Chau906d8822022-05-23 10:42:25 +0100194 if (!mIsVertical) {
Pat Manninge3d74b42022-06-08 13:15:13 +0100195 // Remove both icons and put the button's text on two lines if text is truncated.
Alex Chau906d8822022-05-23 10:42:25 +0100196 if (firstButton.isTextTruncated(availableWidth)) {
197 firstButton.setIconVisible(false);
Pat Manninge3d74b42022-06-08 13:15:13 +0100198 secondButton.setIconVisible(false);
Alex Chau906d8822022-05-23 10:42:25 +0100199 firstButton.setTextMultiLine(true);
200 firstButton.setPadding(horizontalPadding, verticalPadding / 2,
201 horizontalPadding, verticalPadding / 2);
202 }
Alex Chau5b019302022-05-23 10:42:25 +0100203 }
204
205 if (!dp.isTwoPanels) {
206 availableWidth -= firstButton.getMeasuredWidth() + dp.dropTargetGapPx;
207 widthSpec = MeasureSpec.makeMeasureSpec(availableWidth, MeasureSpec.AT_MOST);
208 }
209 secondButton.measure(widthSpec, heightSpec);
210 if (!mIsVertical) {
Pat Manninge3d74b42022-06-08 13:15:13 +0100211 // Remove both icons and put the button's text on two lines if text is truncated.
Alex Chau906d8822022-05-23 10:42:25 +0100212 if (secondButton.isTextTruncated(availableWidth)) {
213 secondButton.setIconVisible(false);
Pat Manninge3d74b42022-06-08 13:15:13 +0100214 firstButton.setIconVisible(false);
Alex Chau906d8822022-05-23 10:42:25 +0100215 secondButton.setTextMultiLine(true);
216 secondButton.setPadding(horizontalPadding, verticalPadding / 2,
217 horizontalPadding, verticalPadding / 2);
Jon Mirandabfaa4a42017-08-21 15:31:51 -0700218 }
219 }
Pat Manninge63dd252022-08-02 16:15:29 +0100220
221 // If text is still truncated, shrink to fit in measured width and resize both targets.
222 float minTextSize =
223 Math.min(firstButton.resizeTextToFit(), secondButton.resizeTextToFit());
224 if (firstButton.getTextSize() != minTextSize
225 || secondButton.getTextSize() != minTextSize) {
226 firstButton.setTextSize(minTextSize);
227 secondButton.setTextSize(minTextSize);
228 }
Jon Mirandabfaa4a42017-08-21 15:31:51 -0700229 }
Sunny Goyald1b3f5c2018-01-18 17:14:05 -0800230 setMeasuredDimension(width, height);
231 }
Jon Mirandabfaa4a42017-08-21 15:31:51 -0700232
Sunny Goyald1b3f5c2018-01-18 17:14:05 -0800233 @Override
234 protected void onLayout(boolean changed, int left, int top, int right, int bottom) {
Alex Chau906d8822022-05-23 10:42:25 +0100235 int visibleCount = getVisibleButtons(mTempTargets);
Sunny Goyala4647b62021-02-02 13:45:34 -0800236 if (visibleCount == 0) {
Pat Manningde25c0d2022-04-05 19:11:26 +0100237 return;
238 }
Sunny Goyald1b3f5c2018-01-18 17:14:05 -0800239
Alex Chau906d8822022-05-23 10:42:25 +0100240 DeviceProfile dp = mLauncher.getDeviceProfile();
241 // Center vertical bar over scaled workspace, accounting for hotseat offset.
Pat Manning5f74bfd2022-07-20 12:08:54 +0100242 float scale = dp.getWorkspaceSpringLoadScale(mLauncher);
Alex Chau906d8822022-05-23 10:42:25 +0100243 Workspace<?> ws = mLauncher.getWorkspace();
244 int barCenter;
245 if (dp.isTwoPanels) {
246 barCenter = (right - left) / 2;
247 } else {
248 int workspaceCenter = (ws.getLeft() + ws.getRight()) / 2;
249 int cellLayoutCenter = ((dp.getInsets().left + dp.workspacePadding.left) + (dp.widthPx
250 - dp.getInsets().right - dp.workspacePadding.right)) / 2;
251 int cellLayoutCenterOffset = (int) ((cellLayoutCenter - workspaceCenter) * scale);
252 barCenter = workspaceCenter + cellLayoutCenterOffset - left;
253 }
Pat Manningde25c0d2022-04-05 19:11:26 +0100254
255 if (visibleCount == 1) {
Alex Chau906d8822022-05-23 10:42:25 +0100256 ButtonDropTarget button = mTempTargets[0];
Pat Manningde25c0d2022-04-05 19:11:26 +0100257 button.layout(barCenter - (button.getMeasuredWidth() / 2), 0,
258 barCenter + (button.getMeasuredWidth() / 2), button.getMeasuredHeight());
259 } else if (visibleCount == 2) {
260 int buttonGap = dp.dropTargetGapPx;
261
Alex Chau906d8822022-05-23 10:42:25 +0100262 ButtonDropTarget leftButton = mTempTargets[0];
Alex Chau906d8822022-05-23 10:42:25 +0100263 ButtonDropTarget rightButton = mTempTargets[1];
Alex Chau5b019302022-05-23 10:42:25 +0100264 if (dp.isTwoPanels) {
265 leftButton.layout(barCenter - leftButton.getMeasuredWidth() - (buttonGap / 2), 0,
266 barCenter - (buttonGap / 2), leftButton.getMeasuredHeight());
267 rightButton.layout(barCenter + (buttonGap / 2), 0,
268 barCenter + (buttonGap / 2) + rightButton.getMeasuredWidth(),
269 rightButton.getMeasuredHeight());
270 } else {
271 int scaledPanelWidth = (int) (dp.getCellLayoutWidth() * scale);
272
273 int leftButtonWidth = leftButton.getMeasuredWidth();
274 int rightButtonWidth = rightButton.getMeasuredWidth();
275 int extraSpace = scaledPanelWidth - leftButtonWidth - rightButtonWidth - buttonGap;
276
277 int leftButtonStart = barCenter - (scaledPanelWidth / 2) + extraSpace / 2;
278 int leftButtonEnd = leftButtonStart + leftButtonWidth;
279 int rightButtonStart = leftButtonEnd + buttonGap;
280 int rightButtonEnd = rightButtonStart + rightButtonWidth;
281
282 leftButton.layout(leftButtonStart, 0, leftButtonEnd,
283 leftButton.getMeasuredHeight());
284 rightButton.layout(rightButtonStart, 0, rightButtonEnd,
285 rightButton.getMeasuredHeight());
286 }
Sunny Goyald1b3f5c2018-01-18 17:14:05 -0800287 }
288 }
289
Alex Chau906d8822022-05-23 10:42:25 +0100290 private int getVisibleButtons(ButtonDropTarget[] outVisibleButtons) {
Sunny Goyald1b3f5c2018-01-18 17:14:05 -0800291 int visibleCount = 0;
Alex Chau906d8822022-05-23 10:42:25 +0100292 for (ButtonDropTarget button : mDropTargets) {
293 if (button.getVisibility() != GONE) {
294 outVisibleButtons[visibleCount] = button;
Sunny Goyald1b3f5c2018-01-18 17:14:05 -0800295 visibleCount++;
296 }
297 }
298 return visibleCount;
Jon Mirandabfaa4a42017-08-21 15:31:51 -0700299 }
300
Hyunyoung Song497708c2019-05-01 16:16:53 -0700301 public void animateToVisibility(boolean isVisible) {
vadimt89d94232021-09-01 12:33:00 -0700302 if (TestProtocol.sDebugTracing) {
303 Log.d(TestProtocol.NO_DROP_TARGET, "8");
304 }
Sunny Goyal47328fd2016-05-25 18:56:41 -0700305 if (mVisible != isVisible) {
306 mVisible = isVisible;
307
308 // Cancel any existing animation
309 if (mCurrentAnimation != null) {
310 mCurrentAnimation.cancel();
311 mCurrentAnimation = null;
312 }
313
314 float finalAlpha = mVisible ? 1 : 0;
315 if (Float.compare(getAlpha(), finalAlpha) != 0) {
316 setVisibility(View.VISIBLE);
317 mCurrentAnimation = animate().alpha(finalAlpha)
318 .setInterpolator(DEFAULT_INTERPOLATOR)
319 .setDuration(DEFAULT_DRAG_FADE_DURATION)
320 .withEndAction(mFadeAnimationEndRunnable);
321 }
322
323 }
324 }
325
Sunny Goyal47328fd2016-05-25 18:56:41 -0700326 /*
327 * DragController.DragListener implementation
328 */
329 @Override
Sunny Goyal94b510c2016-08-16 15:36:48 -0700330 public void onDragStart(DropTarget.DragObject dragObject, DragOptions options) {
vadimt89d94232021-09-01 12:33:00 -0700331 if (TestProtocol.sDebugTracing) {
332 Log.d(TestProtocol.NO_DROP_TARGET, "7");
333 }
Sunny Goyal47328fd2016-05-25 18:56:41 -0700334 animateToVisibility(true);
335 }
336
337 /**
338 * This is called to defer hiding the delete drop target until the drop animation has completed,
339 * instead of hiding immediately when the drag has ended.
340 */
341 protected void deferOnDragEnd() {
342 mDeferOnDragEnd = true;
343 }
344
345 @Override
346 public void onDragEnd() {
347 if (!mDeferOnDragEnd) {
348 animateToVisibility(false);
349 } else {
350 mDeferOnDragEnd = false;
351 }
352 }
Sunny Goyal0236d0b2017-10-24 14:54:30 -0700353
354 public ButtonDropTarget[] getDropTargets() {
Alex Chau5b019302022-05-23 10:42:25 +0100355 return getVisibility() == View.VISIBLE ? mDropTargets : new ButtonDropTarget[0];
Sunny Goyal0236d0b2017-10-24 14:54:30 -0700356 }
vadimt89d94232021-09-01 12:33:00 -0700357
358 @Override
359 protected void onVisibilityChanged(@NonNull View changedView, int visibility) {
360 super.onVisibilityChanged(changedView, visibility);
Vadim Tryshev8629be72021-10-26 19:57:49 +0000361 if (TestProtocol.sDebugTracing) {
362 if (visibility == VISIBLE) {
363 Log.d(TestProtocol.NO_DROP_TARGET, "9");
364 } else {
365 Log.d(TestProtocol.NO_DROP_TARGET, "Hiding drop target", new Exception());
366 }
vadimt89d94232021-09-01 12:33:00 -0700367 }
368 }
Sunny Goyal47328fd2016-05-25 18:56:41 -0700369}