When a WindowManager android.view.WindowLeaked is thrown, is memory recovered?

25
March 16, 2019, at 09:30 AM

In certain rare situations, I get an error like E/WindowManager: android.view.WindowLeaked. When Android realizes this has happened and throws this error, does it also reclaim the memory, fixing the leak?

Whats happening for me is if a notification comes in and a user clicks it, I throw away the current activity and start a new one which deals with the notification, but if the user had a dialog window open on the previous activity, then it's leaked. I suppose the 'correct' way to deal with this would be to track if a dialog is open for each activity, and then dismiss it in the activity's onDestroy, but that's going to be a pain in the ass and just checking if I can avoid doing that for every activity if Android already takes care of that for me.

READ ALSO
androidx.RecyclerView ListAdapter very slow

androidx.RecyclerView ListAdapter very slow

I am using the ListAdapter with RecyclerView and under certain circumstances the app becomes extremely slow -- it freezes for 10 seconds with a list of 1000 items

18
Detect TV on Android

Detect TV on Android

I need to disable Admob ads if user uses app on some device based on Android or other TV box device with mobile Android which is connected to the TV, for example X92, H96, Beelink GT1I found a way to determine Android TV device and disabled ads for these devices

30
MySQL - divide results of count function into columns derived from a separate column

MySQL - divide results of count function into columns derived from a separate column

I recently posted this within a different page of Stack Exchange but believe this to be the more appropriate place for it

39
Spring boot JPA @Query with like and in

Spring boot JPA @Query with like and in

I'm trying to make a method in Repository that will be able to give me list of users, But didn't return a valueThis is my method public interface ProductRepository extends JpaRepository { @Query(value = "select * from mmall_product m where m

49