mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 11:18:21 +00:00
Revert "Sync hotseat/taskbar handoff"
This reverts commit ede8718e63.
Reason for revert: causing ANR b/223789074
Bug: 223789074
Bug: 223443781
Bug: 202507555
Change-Id: Ibd76939a345f54e8945cdd97e652f5e06e40edcb
This commit is contained in:
@@ -191,16 +191,6 @@ public class TaskbarViewController implements TaskbarControllers.LoggableTaskbar
|
||||
+ mTaskbarIconTranslationYForStash.value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates the icon alignment controller if it does not already exist.
|
||||
* @param launcherDp Launcher device profile.
|
||||
*/
|
||||
public void createIconAlignmentControllerIfNotExists(DeviceProfile launcherDp) {
|
||||
if (mIconAlignControllerLazy == null) {
|
||||
mIconAlignControllerLazy = createIconAlignmentController(launcherDp);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the taskbar icon alignment relative to Launcher hotseat icons
|
||||
* @param alignmentRatio [0, 1]
|
||||
@@ -208,7 +198,9 @@ public class TaskbarViewController implements TaskbarControllers.LoggableTaskbar
|
||||
* 1 => fully aligned
|
||||
*/
|
||||
public void setLauncherIconAlignment(float alignmentRatio, DeviceProfile launcherDp) {
|
||||
createIconAlignmentControllerIfNotExists(launcherDp);
|
||||
if (mIconAlignControllerLazy == null) {
|
||||
mIconAlignControllerLazy = createIconAlignmentController(launcherDp);
|
||||
}
|
||||
mIconAlignControllerLazy.setPlayFraction(alignmentRatio);
|
||||
if (alignmentRatio <= 0 || alignmentRatio >= 1) {
|
||||
// Cleanup lazy controller so that it is created again in next animation
|
||||
|
||||
Reference in New Issue
Block a user