Hello this is Mortaza court.
And in this tutorial you're going to implement the undestroyed method inside our floating youth service
class in order to prevent memory problems later when our application is actually published.
So here inside this class we can implement this method after this unbind method but make sure that you
implement this method before the Indian curly place of our class.
So now I can't just step in and destroy and inside the Smurfit after this super edit and destroy Colling
here I am going to say if floating widgets is not equal to gnarl if our vision is not actually not.
And this means that this visit is still in memory and taking space then we are going to say window manager
that removes view.
The view is going to be floating widgets.
So that's it.
In this way their view their vision is going to be removed from the window manager and the memory is
going to be emptied.
So thank you very much for watching.
In the next tutorial we're going to put permissions inside the main activity class because we need to
ask the user to directly give us the permission to draw our widget over other apps or the Android on
the screen.
And then when the user gives us the permission we can shorten widgets to the user.
So thank you very much for watching and I look forward to seeing you in the next two Oreo.