mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-27 23:36:47 +00:00
Removing wrong dead code around direction matching
Change-Id: Ic8349fcac4bfe6222b1cbf26e8cbb1810dc32298
This commit is contained in:
@@ -1356,12 +1356,9 @@ public class CellLayout extends ViewGroup implements BubbleTextShadowHandler {
|
||||
// and that passed in.
|
||||
int curDirectionScore = direction[0] * curDirection[0] +
|
||||
direction[1] * curDirection[1];
|
||||
boolean exactDirectionOnly = false;
|
||||
boolean directionMatches = direction[0] == curDirection[0] &&
|
||||
direction[0] == curDirection[0];
|
||||
if ((directionMatches || !exactDirectionOnly) &&
|
||||
Float.compare(distance, bestDistance) < 0 || (Float.compare(distance,
|
||||
bestDistance) == 0 && curDirectionScore > bestDirectionScore)) {
|
||||
if (Float.compare(distance, bestDistance) < 0 ||
|
||||
(Float.compare(distance, bestDistance) == 0
|
||||
&& curDirectionScore > bestDirectionScore)) {
|
||||
bestDistance = distance;
|
||||
bestDirectionScore = curDirectionScore;
|
||||
bestXY[0] = x;
|
||||
|
||||
Reference in New Issue
Block a user