Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
e
os
BlissLauncher
Commits
988386f8
Commit
988386f8
authored
Apr 06, 2021
by
Amit Kumar
💻
Browse files
Fix spotless violation
parent
9a794c3b
Pipeline
#109289
passed with stage
in 6 minutes and 24 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/src/main/java/foundation/e/blisslauncher/core/customviews/LauncherPagedView.java
View file @
988386f8
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
{
...
...
app/src/main/java/foundation/e/blisslauncher/features/test/CellLayout.kt
View file @
988386f8
...
...
@@ -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
)
...
...
app/src/main/java/foundation/e/blisslauncher/features/test/LauncherRootView.java
View file @
988386f8
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
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment