From a706f00d7873a5bebebc1ae741794dca821e71e7 Mon Sep 17 00:00:00 2001 From: Tracy Zhou Date: Wed, 28 Mar 2018 13:55:19 -0700 Subject: Move default pip position to right above the shelf (Pt. Launcher) SysUI change: ag/3721784, ag/3793664 - Track LauncherState and launcher activity state through callbacks. - Devise logic to send shelf visibility and height signal to SysUI based on LauncherState and Launcher activity state. Bug: 73961893 Test: - By default, pip shows up right above the shelf. - Transitioning to all apps moves the pip down as the shelf becomes invisible. - Going to any specific app moves pip down. Hitting home moves pip right above the shelf again. - Dismissing IME should push PIP down but above the shelf on home screen, bottom if not. Change-Id: I1ab6ceb8007a5a7b5d932a456efa0a07f586ea4c --- src_ui_overrides/com/android/launcher3/uioverrides/UiFactory.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src_ui_overrides/com') diff --git a/src_ui_overrides/com/android/launcher3/uioverrides/UiFactory.java b/src_ui_overrides/com/android/launcher3/uioverrides/UiFactory.java index 94abcce57..6645e896d 100644 --- a/src_ui_overrides/com/android/launcher3/uioverrides/UiFactory.java +++ b/src_ui_overrides/com/android/launcher3/uioverrides/UiFactory.java @@ -46,6 +46,8 @@ public class UiFactory { public static void onStart(Launcher launcher) { } + public static void onLauncherStateOrResumeChanged(Launcher launcher) { } + public static void onTrimMemory(Launcher launcher, int level) { } public static View[] getHotseatExtraContent(Hotseat hotseat) { -- cgit v1.2.3