Skip to content
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

Close bubble icon & duplicate icon displayed #4

Closed
prabusharan opened this issue Nov 29, 2022 · 1 comment
Closed

Close bubble icon & duplicate icon displayed #4

prabusharan opened this issue Nov 29, 2022 · 1 comment
Assignees
Labels
Bug Something isn't working

Comments

@prabusharan
Copy link

prabusharan commented Nov 29, 2022

Issues:

  1. Unable close service from the inside application without using the close button.
  2. If the user calls the floating bubble service before closing the previous floating bubble means a new duplicate bubble will be created automatically.

Screenshot_1669716180

@dofire dofire pinned this issue Dec 6, 2022
@dofire dofire added the Bug Something isn't working label Dec 6, 2022
@dofire dofire self-assigned this Dec 6, 2022
@dofire
Copy link
Owner

dofire commented Dec 7, 2022

Unable close service from the inside application without using the close button

You can simply use the built-in function below to stop the bubble inside the app

context.stopService(Intent(context, YourBubbleService::class.java))

If the user calls the floating bubble service before closing the previous floating bubble means a new duplicate bubble will be created automatically
Actually this is my intention from the beginning.
I've upgraded this library, please update to the latest version. After update, you can check if the bubble is running

Boolean isBubbleRunning = FloatingBubbleService.isRunning()

if(isBubbleRunning){
   stopService(...)
}else{
   startService(...)
}

Thank you for your interest in this library.

@dofire dofire closed this as completed Dec 7, 2022
@dofire dofire unpinned this issue Dec 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants