pingpongboss / StandOut

StandOut lets you easily create floating windows in your Android app.
http://pingpongboss.github.com/StandOut
MIT License
1.24k stars 379 forks source link

Removed problematic already shown and hidden exceptions. #26

Closed gw0 closed 9 years ago

gw0 commented 9 years ago

When calling show and hide intents from another thread a race condition may appear causing multiple calls to window show and hide functions. It is unnecessary for those functions throw an exception, because it is obvious what should be achieved (window either shown or hidden).

The proposed patch replaces the exceptions with a debugging notice and "does the right thing".