-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Declaring MyClass in a separate file causes the bubble to not show up #46
Comments
Hi @z0xyz 👋, I don't think the issue comes from the library itself, you mentioned that the issue appears when you extract the service class to a separated file. Did you check the name of the service class in your manifest file? ...
<service
+ android:name="<YOUR_PACKAGE>.MyService"
android:foregroundServiceType="specialUse"
>
<property android:name="android.app.PROPERTY_SPECIAL_USE_FGS_SUBTYPE" android:value="foo"/> <!-- optional -->
</service>
... Thank you 💖 |
Thanks. That resolved the problem. Thanks for your help. |
I still have another issue that popped out
I was also wondering if there was a convenient way / code sample to incorporate Text selection event listener with chat bubbles. REF. For example showing the floating bubble when the context menu option is selected, then passing this text to the bubble/Expanded bubble. I was thinking of an Android service, but was wondering if you think this library would have a better/ more straightforward approach. |
Thank you for reminding me, v0.6.2 has fixed this issue
AFAIK, you can create an activity just for receiving the highlighted text, and call |
Great thanks!
I've tried to achieve that. In fact, I already did before on an XML project, but now that I'm using compose creating an activity class extending |
Unlike the previous version, the latest one |
Hi @z0xyz 👋, Thanks for your suggestion, I'll support it if possible. You can do magic like this: Update expandedBubble?.layoutParams?.flags =
WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS or
+ WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE or
WindowManager.LayoutParams.FLAG_DIM_BEHIND |
Steps to reproduce
MainActivity.kt
file.MyClasss
class within the same file.MyClass
in a separate fileExpected behavior
The bubble shows up whether
MyClass
is declared within theMainActivity
file or another separate file.Actual behavior
The bubble shows up, only when
MyClass
is declared within the same file.Crash logs
No crash logs. It just doesn't show up silently.
Floating-Bubble-View version
0.6.1
Android version
10
Device
Huwawei MRD-LX1F
Other details
I'm using a physical device for testing
Acknowledgements
The text was updated successfully, but these errors were encountered: