You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 26, 2023. It is now read-only.
WindowLeak Exception when invoking mUndoPopup.dismiss(); while the container window is no longer visible.
Scenario:
Swipe to dismiss so reveal the undo popup window.
Press the Home button to go to the recently used apps view.
Swipe to dismiss the application.
Now if you set the EnhancedListView to:
myEnhancedListView.setRequireTouchBeforeDismiss(true);
You'll get an exception of WindowLeak on the undo popup window which didn't had the time to dismiss himself.
Or worse if you set the EnhacedListView to:
myEnhancedListView.setRequireTouchBeforeDismiss(false);
myEnhancedListView.setUndoHideDelay(10000); (10 sec so you have time to dismiss the application).
The application will crush cos the undo popup window which will try to dismiss himself after 10 seconds but the container layout is no longer exists.
WindowLeak Exception when invoking mUndoPopup.dismiss(); while the container window is no longer visible.
Scenario:
Now if you set the EnhancedListView to:
myEnhancedListView.setRequireTouchBeforeDismiss(true);
You'll get an exception of WindowLeak on the undo popup window which didn't had the time to dismiss himself.
Or worse if you set the EnhacedListView to:
myEnhancedListView.setRequireTouchBeforeDismiss(false);
myEnhancedListView.setUndoHideDelay(10000); (10 sec so you have time to dismiss the application).
The application will crush cos the undo popup window which will try to dismiss himself after 10 seconds but the container layout is no longer exists.