Revert "Add support for taskbar background to wrap around hotseat"

This reverts commit 5dc07d786f.

Reason for revert: b/360116669

Bug: 345768019
Change-Id: Id70ceed141e2106f746d4a0e68a09675ba45dd28
Fixes: 360116669
Test: open taskbar, open all apps w/ ime, use ime back button
Flag: com.android.launcher3.enable_scaling_reveal_home_animation
This commit is contained in:
Jon Miranda
2024-09-23 21:47:59 +00:00
parent d3460af469
commit 9c09196dfd
8 changed files with 12 additions and 132 deletions

View File

@@ -24,7 +24,6 @@ import static com.android.launcher3.taskbar.TaskbarLauncherStateController.FLAG_
import android.animation.Animator;
import android.animation.AnimatorSet;
import android.graphics.Rect;
import android.window.RemoteTransition;
import androidx.annotation.NonNull;
@@ -189,24 +188,6 @@ public class LauncherTaskbarUIController extends TaskbarUIController {
placeholderDuration));
}
/**
* Returns the bounds of launcher's hotseat.
*/
public void getHotseatBounds(Rect hotseatBoundsOut) {
DeviceProfile launcherDP = mLauncher.getDeviceProfile();
if (launcherDP.isQsbInline) {
// Not currently supported.
hotseatBoundsOut.setEmpty();
return;
}
int left = (launcherDP.widthPx - launcherDP.getHotseatWidthPx()
- mLauncher.getHotseat().getUnusedHorizontalSpace()) / 2;
int right = left + launcherDP.getHotseatWidthPx();
int bottom = launcherDP.getHotseatLayoutPadding(mLauncher).bottom;
int top = bottom - launcherDP.hotseatCellHeightPx;
hotseatBoundsOut.set(left, top, right, bottom);
}
/**
* Should be called from onResume() and onPause(), and animates the Taskbar accordingly.
*/