summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/AbstractFloatingView.java
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2017-11-10 14:52:00 -0800
committerSunny Goyal <sunnygoyal@google.com>2017-11-10 18:06:33 -0800
commitf8088eecf1939ef6ada4161f7c22c89a852fe4fd (patch)
tree3d19e9810b5dd43aee70cf47bb4c6183bf827634 /src/com/android/launcher3/AbstractFloatingView.java
parent3a052d413df19f732e53a41a3781a5e63be50e25 (diff)
downloadandroid_packages_apps_Trebuchet-f8088eecf1939ef6ada4161f7c22c89a852fe4fd.tar.gz
android_packages_apps_Trebuchet-f8088eecf1939ef6ada4161f7c22c89a852fe4fd.tar.bz2
android_packages_apps_Trebuchet-f8088eecf1939ef6ada4161f7c22c89a852fe4fd.zip
Initial changes for handling touch events.
When the touch passes a threashold, we take a snapshot and start the launcher activity. The launcher displays the snapshot on top of its UI. As we get further touch events, we move this snapshot and the hotseat in reponse. Change-Id: I4623676227000afd52805a414a4de499081feced
Diffstat (limited to 'src/com/android/launcher3/AbstractFloatingView.java')
-rw-r--r--src/com/android/launcher3/AbstractFloatingView.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/com/android/launcher3/AbstractFloatingView.java b/src/com/android/launcher3/AbstractFloatingView.java
index 62e0fb1bc..26024e531 100644
--- a/src/com/android/launcher3/AbstractFloatingView.java
+++ b/src/com/android/launcher3/AbstractFloatingView.java
@@ -20,7 +20,6 @@ import android.annotation.SuppressLint;
import android.content.Context;
import android.support.annotation.IntDef;
import android.util.AttributeSet;
-import android.util.Log;
import android.view.MotionEvent;
import android.view.View;
import android.widget.LinearLayout;
@@ -42,7 +41,8 @@ public abstract class AbstractFloatingView extends LinearLayout implements Touch
TYPE_ACTION_POPUP,
TYPE_WIDGETS_BOTTOM_SHEET,
TYPE_WIDGET_RESIZE_FRAME,
- TYPE_WIDGETS_FULL_SHEET
+ TYPE_WIDGETS_FULL_SHEET,
+ TYPE_QUICKSTEP_PREVIEW
})
@Retention(RetentionPolicy.SOURCE)
public @interface FloatingViewType {}
@@ -51,9 +51,11 @@ public abstract class AbstractFloatingView extends LinearLayout implements Touch
public static final int TYPE_WIDGETS_BOTTOM_SHEET = 1 << 2;
public static final int TYPE_WIDGET_RESIZE_FRAME = 1 << 3;
public static final int TYPE_WIDGETS_FULL_SHEET = 1 << 4;
+ public static final int TYPE_QUICKSTEP_PREVIEW = 1 << 5;
public static final int TYPE_ALL = TYPE_FOLDER | TYPE_ACTION_POPUP
- | TYPE_WIDGETS_BOTTOM_SHEET | TYPE_WIDGET_RESIZE_FRAME | TYPE_WIDGETS_FULL_SHEET;
+ | TYPE_WIDGETS_BOTTOM_SHEET | TYPE_WIDGET_RESIZE_FRAME | TYPE_WIDGETS_FULL_SHEET
+ | TYPE_QUICKSTEP_PREVIEW;
protected boolean mIsOpen;