Why does keyboard-slide crash my app?

前端 未结 4 1407
春和景丽
春和景丽 2020-12-15 11:14

If I physically slide out the keyboard on my Moto Droid A855, it crashes my test app with the stack trace pasted below. I don\'t understand why?

Also, if I start my

4条回答
  •  轮回少年
    2020-12-15 12:01

    It's really difficult to help you if you don't provide some part of your code... anyway, this error is not new and there are some workarounds in order to solve it (I guess is some bug)... try to do this:

    @Override
    protected void onDetachedFromWindow() {
        try {
            super.onDetachedFromWindow();
        }
        catch (IllegalArgumentException e) {
            stopFlipping();
        }
    }
    

    This is for overriding the onDetachedFromWindow and I hope it works for you.

提交回复
热议问题