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
f6bd7feb
Commit
f6bd7feb
authored
Sep 07, 2021
by
Amit Kumar
💻
Browse files
Remove unnecessary logs
parent
8008aa1e
Pipeline
#134079
passed with stage
in 4 minutes and 44 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/src/main/java/foundation/e/blisslauncher/features/test/TestActivity.kt
View file @
f6bd7feb
...
...
@@ -1354,10 +1354,6 @@ class TestActivity : BaseDraggingActivity(), AutoCompleteAdapter.OnSuggestionCli
this
.
currentProgress
=
progress
if
(
animator
==
null
&&
isScrolling
)
{
Log
.
d
(
TAG
,
"onScrollChanged() called with: progress = $progress, scrollFromWorkspace = $scrollFromWorkspace, ${animator == null}, $isScrolling"
)
if
(
scrollFromWorkspace
)
{
workspace
.
onOverlayScrollChanged
(
progress
)
widgetPage
.
translationX
=
widgetPage
.
measuredWidth
*
(
progress
-
1
)
...
...
@@ -1368,15 +1364,10 @@ class TestActivity : BaseDraggingActivity(), AutoCompleteAdapter.OnSuggestionCli
}
override
fun
onScrollBegin
()
{
Log
.
d
(
TAG
,
"onScrollBegin() called"
)
isScrolling
=
true
}
override
fun
onScrollEnd
(
finalProgress
:
Float
,
scrollFromWorkspace
:
Boolean
)
{
Log
.
d
(
TAG
,
"onScrollEnd() called with: finalProgress = $finalProgress, scrollFromWorkspace = $scrollFromWorkspace, currentProhgress = $currentProgress"
)
isScrolling
=
false
if
(
scrollFromWorkspace
)
{
val
workspaceAnim
=
ValueAnimator
.
ofFloat
(
currentProgress
,
finalProgress
)
...
...
@@ -1400,10 +1391,6 @@ class TestActivity : BaseDraggingActivity(), AutoCompleteAdapter.OnSuggestionCli
})
animator
=
workspaceAnim
}
else
{
Log
.
d
(
TAG
,
"onScrollEnd() 2"
)
val
finalProgressOpposite
=
finalProgress
-
1
val
workspaceAnim
=
ValueAnimator
.
ofFloat
(
currentProgress
,
finalProgress
)
workspaceAnim
.
addUpdateListener
{
...
...
@@ -1426,10 +1413,6 @@ class TestActivity : BaseDraggingActivity(), AutoCompleteAdapter.OnSuggestionCli
})
animator
=
workspaceAnim
}
Log
.
d
(
TAG
,
"onScrollEnd() 3 ${animator == null}"
)
animator
?.
start
()
}
}
...
...
app/src/quickstep/recents_ui_overrides/src/foundation/e/blisslauncher/uioverrides/OverlayCallbackImpl.java
View file @
f6bd7feb
...
...
@@ -21,13 +21,11 @@ public class OverlayCallbackImpl implements TestActivity.LauncherOverlay {
@Override
public
void
onScrollInteractionBegin
()
{
Log
.
d
(
TAG
,
"onScrollInteractionBegin() called"
);
mLauncherOverlayCallbacks
.
onScrollBegin
();
}
@Override
public
void
onScrollInteractionEnd
()
{
Log
.
d
(
TAG
,
"onScrollInteractionEnd() called "
+
mProgress
);
if
(
scrollFromWorkspace
)
{
if
(
mProgress
>=
0.5f
)
mLauncherOverlayCallbacks
.
onScrollEnd
(
1
f
,
true
);
else
mLauncherOverlayCallbacks
.
onScrollEnd
(
0
f
,
true
);
...
...
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