Commit 988386f8 authored by Amit Kumar's avatar Amit Kumar 💻
Browse files

Fix spotless violation

parent 9a794c3b
Pipeline #109289 passed with stage
in 6 minutes and 24 seconds
package foundation.e.blisslauncher.core.customviews;
import static foundation.e.blisslauncher.features.test.anim.LauncherAnimUtils.SPRING_LOADED_TRANSITION_MS;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.animation.LayoutTransition;
......@@ -22,13 +24,6 @@ import android.view.View;
import android.view.WindowInsets;
import android.widget.GridLayout;
import android.widget.Toast;
import org.jetbrains.annotations.NotNull;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import foundation.e.blisslauncher.BuildConfig;
import foundation.e.blisslauncher.R;
import foundation.e.blisslauncher.core.customviews.pageindicators.PageIndicatorDots;
......@@ -52,8 +47,10 @@ import foundation.e.blisslauncher.features.test.dragndrop.DragView;
import foundation.e.blisslauncher.features.test.dragndrop.DropTarget;
import foundation.e.blisslauncher.features.test.dragndrop.SpringLoadedDragController;
import foundation.e.blisslauncher.features.test.graphics.DragPreviewProvider;
import static foundation.e.blisslauncher.features.test.anim.LauncherAnimUtils.SPRING_LOADED_TRANSITION_MS;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.jetbrains.annotations.NotNull;
public class LauncherPagedView extends PagedView<PageIndicatorDots> implements View.OnTouchListener,
Insettable, DropTarget, DragSource, DragController.DragListener {
......
......@@ -702,11 +702,11 @@ open class CellLayout @JvmOverloads constructor(
validRegions.push(currentRect)
Log.d(TAG, "Current Cell: [$x, $y] ")
Log.d(TAG, "Current Cell Center: ["+cellXY[0]+", "+cellXY[1]+"] ")
Log.d(TAG, "Pixel Center: ["+pixelX+", "+pixelY+"] ")
Log.d(TAG, "Current Cell Center: [" + cellXY[0] + ", " + cellXY[1] + "] ")
Log.d(TAG, "Pixel Center: [" + pixelX + ", " + pixelY + "] ")
val distance =
hypot((cellXY[0] - pixelX).toDouble(), (cellXY[1] - pixelY).toDouble())
Log.d(TAG, "Distance: "+distance)
Log.d(TAG, "Distance: " + distance)
if (distance <= bestDistance && !contained ||
currentRect.contains(bestRect)
......@@ -848,7 +848,7 @@ open class CellLayout @JvmOverloads constructor(
var index = result[1] * mCountX + result[0]
Log.d("REORDER", "Index: " + index + " " + rowCount + " " + columnCount)
if(index > childCount) {
if (index > childCount) {
index = childCount
}
addView(dragView, index)
......
package foundation.e.blisslauncher.features.test;
import static foundation.e.blisslauncher.features.test.SystemUiController.FLAG_DARK_NAV;
import static foundation.e.blisslauncher.features.test.SystemUiController.UI_STATE_NORMAL;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
......@@ -9,13 +12,8 @@ import android.util.AttributeSet;
import android.view.View;
import android.view.ViewDebug;
import android.view.WindowInsets;
import org.jetbrains.annotations.Nullable;
import foundation.e.blisslauncher.core.customviews.InsettableFrameLayout;
import static foundation.e.blisslauncher.features.test.SystemUiController.FLAG_DARK_NAV;
import static foundation.e.blisslauncher.features.test.SystemUiController.UI_STATE_NORMAL;
import org.jetbrains.annotations.Nullable;
public class LauncherRootView extends InsettableFrameLayout {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment