Comments (3)
@geecko86
I've never seen this crash log before.
Is there the latest code of LyricsOverlayService
?
from floatingview.
I'm not sure I understand the question.
Here's the LyricsOverlayService.onTouch
method:
@Override
public boolean onTouch(View view, MotionEvent event) {
if (mFloatingViewManager == null || view.getAlpha() != 1f || mFloatingViewManager.getTargetFloatingView() == null)
return false;
boolean output = mFloatingViewManager.onTouch(view, event);
if (isInOverlay()) {
if (event.getAction() == MotionEvent.ACTION_MOVE && !mDoPullBack) {
exitOverlay(false, false);
mDoPullBack = true;
mFloatingViewManager.getTargetFloatingView().setBlockMoveToEdge(true);
}
} else if (event.getAction() == MotionEvent.ACTION_UP) {
if (event.getEventTime() - event.getDownTime() < 200)
view.performClick();
}
return output;
}
The if mFloatingViewManager.getTargetFloatingView() == null
part was just added by me, and should (in theory) prevent this from happening.
It's still odd, though.
from floatingview.
This might very well be an issue on our end. Don't hesitate to close if you think it's too weird.
from floatingview.
Related Issues (20)
- addViewToWindow() crashes with IllegalStateException HOT 10
- get the removing view instead of coordinate
- Laggy floatingview HOT 8
- NullPointerException on mVelocityTracker
- Can't move view on some devices HOT 3
- getDisplayCutout() on a null object reference HOT 5
- old bug (#88) HOT 2
- Support Android Q HOT 3
- sample not work.
- NPE in addMovement HOT 1
- android x migration HOT 1
- Crash on display with oreo 8
- Support Android P HOT 5
- Caused by: android.view.WindowManager$BadTokenException: Unable to add window android.view.ViewRootImpl$W@990cb01 -- permission denied for window type 2038 HOT 2
- startObjectAnimation() only updates either X or Y
- Bugs on Galaxy S9+ HOT 7
- FloatingViewManager.removeAllViewToWindow() causes IllegalArgumentException HOT 1
- Floating view disappear in API level 26 HOT 1
- Can't remove floating view HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from floatingview.