mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-03 01:16:49 +00:00
Revert "Moving taskbar lifecycle to TouchInteractionService"
This reverts commit e215fb730b.
Reason for revert: DroidMonitor-triggered revert due to breakage https://android-build.googleplex.com/builds/tests/view?invocationId=I13700009003387451&testResultId=TR89423459137251402, bug https://buganizer.corp.google.com/issues/188755902
Bug: 188755902
Change-Id: I4650136975b60f311499ee6ff5b27ab9a32d23d6
This commit is contained in:
committed by
kholoud mohamed
parent
bb6f6e5dae
commit
430465a3d5
@@ -324,17 +324,15 @@ public final class Utilities {
|
||||
}
|
||||
|
||||
public static void scaleRectFAboutCenter(RectF r, float scale) {
|
||||
scaleRectFAboutPivot(r, scale, r.centerX(), r.centerY());
|
||||
}
|
||||
|
||||
public static void scaleRectFAboutPivot(RectF r, float scale, float px, float py) {
|
||||
if (scale != 1.0f) {
|
||||
r.offset(-px, -py);
|
||||
float cx = r.centerX();
|
||||
float cy = r.centerY();
|
||||
r.offset(-cx, -cy);
|
||||
r.left = r.left * scale;
|
||||
r.top = r.top * scale ;
|
||||
r.right = r.right * scale;
|
||||
r.bottom = r.bottom * scale;
|
||||
r.offset(px, py);
|
||||
r.offset(cx, cy);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user