Merge "Add support for taskbar background to wrap around hotseat" into main
This commit is contained in:
commit
e8b47c540f
8 files changed
+132
-12
No files matched your search
@@ -22,6 +22,7 @@ import static com.android.launcher3.config.FeatureFlags.ENABLE_TASKBAR_NAVBAR_UN
|
||||
|
||||
import android.content.Context;
|
||||
import android.graphics.Canvas;
|
||||
import android.graphics.Rect;
|
||||
import android.graphics.RectF;
|
||||
import android.media.permission.SafeCloseable;
|
||||
import android.util.AttributeSet;
|
||||
@@ -259,6 +260,11 @@ public class TaskbarDragLayer extends BaseDragLayer<TaskbarActivityContext> {
|
||||
return mBackgroundRenderer.getLastDrawnTransientRect();
|
||||
}
|
||||
|
||||
/** Returns the rect used to transform transient taskbar to the hotseat */
|
||||
public Rect getTaskbarToHotseatOffsetRect() {
|
||||
return mBackgroundRenderer.getTaskbarToHotseatOffsetRect();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean dispatchTouchEvent(MotionEvent ev) {
|
||||
TestLogging.recordMotionEvent(TestProtocol.SEQUENCE_MAIN, "Touch event", ev);
|
||||
|
||||
Reference in new issue
Block a user