Allow stashed taskbar to be long pressed.
Bug: 319175012 Test: Manual and unit test Flag: NA (see other change) Change-Id: Ic8ac68d21c64a909a1035339d36f9c3b50a8963c
This commit is contained in:
@@ -20,6 +20,7 @@ import static com.android.systemui.shared.system.QuickStepContract.SYSUI_STATE_N
|
||||
import android.animation.Animator;
|
||||
import android.animation.AnimatorListenerAdapter;
|
||||
import android.animation.ValueAnimator;
|
||||
import android.content.Context;
|
||||
import android.content.SharedPreferences;
|
||||
import android.content.res.Resources;
|
||||
import android.graphics.Outline;
|
||||
@@ -37,6 +38,7 @@ import com.android.launcher3.util.DisplayController;
|
||||
import com.android.launcher3.util.Executors;
|
||||
import com.android.launcher3.util.MultiPropertyFactory;
|
||||
import com.android.launcher3.util.MultiValueAlpha;
|
||||
import com.android.quickstep.NavHandle;
|
||||
import com.android.systemui.shared.navigationbar.RegionSamplingHelper;
|
||||
|
||||
import java.io.PrintWriter;
|
||||
@@ -44,7 +46,8 @@ import java.io.PrintWriter;
|
||||
/**
|
||||
* Handles properties/data collection, then passes the results to our stashed handle View to render.
|
||||
*/
|
||||
public class StashedHandleViewController implements TaskbarControllers.LoggableTaskbarController {
|
||||
public class StashedHandleViewController implements TaskbarControllers.LoggableTaskbarController,
|
||||
NavHandle {
|
||||
|
||||
public static final int ALPHA_INDEX_STASHED = 0;
|
||||
public static final int ALPHA_INDEX_HOME_DISABLED = 1;
|
||||
@@ -298,4 +301,24 @@ public class StashedHandleViewController implements TaskbarControllers.LoggableT
|
||||
pw.println(prefix + "\tmStashedHandleHeight=" + mStashedHandleHeight);
|
||||
mRegionSamplingHelper.dump(prefix, pw);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void animateNavBarLongPress(boolean isTouchDown, boolean shrink, long durationMs) {
|
||||
// TODO(b/308693847): Animate similarly to NavigationHandle.java (SysUI).
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isNavHandleStashedTaskbar() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canNavHandleBeLongPressed() {
|
||||
return isStashedHandleVisible();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getNavHandleWidth(Context context) {
|
||||
return mStashedHandleWidth;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user