Skip to content
This repository has been archived by the owner on Feb 3, 2020. It is now read-only.

Commit

Permalink
Merge pull request #106 from recruit-lifestyle/develop
Browse files Browse the repository at this point in the history
Ver 2.4.1
  • Loading branch information
YoshihideSogawa authored Jan 15, 2019
2 parents 0eab36e + dd495c8 commit d0034e3
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -594,10 +594,12 @@ public void removeAllViewToWindow() {
* @param view {@link View}
*/
private void removeViewImmediate(View view) {
if (!ViewCompat.isAttachedToWindow(view)) {
return;
// fix #100(crashes on Android 8)
try {
mWindowManager.removeViewImmediate(view);
} catch (IllegalArgumentException e) {
//do nothing
}
mWindowManager.removeViewImmediate(view);
}

/**
Expand Down

0 comments on commit d0034e3

Please sign in to comment.