Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions library/src/wei/mark/standout/StandOutWindow.java
Original file line number Diff line number Diff line change
Expand Up @@ -1097,6 +1097,12 @@ public final synchronized Window show(int id) {
// get the params corresponding to the id
StandOutLayoutParams params = window.getLayoutParams();

try {
// force remove the view from the window manager to prevent adding it again
mWindowManager.removeView(window);
} catch(IllegalArgumentException ex) {
}

try {
// add the view to the window manager
mWindowManager.addView(window, params);
Expand Down