illegalstateexception이 간헐적으로 listview에서 발생합니다
근데 try catch도 안되고요(throwable로 잡든 illegalstateexception으로 잡든 안잡혀요 ㅜ)
public void refresh() {
if (Thread.currentThread() == Looper.getMainLooper().getThread()) {
try {
notifyDataSetChanged();
} catch (final Error e) {
ErrorHandler.getInstance().handle(e);
} catch (final IllegalStateException e) {
ErrorHandler.getInstance().handle(e);
} catch (final RuntimeException e) {
ErrorHandler.getInstance().handle(e);
} catch (final Throwable e) {
ErrorHandler.getInstance().handle(e);
}
}
}
이게 현재 listadapter 내부에 구현되어있는 겁니다(함수로해놧어요)
저건 반드시 runOnUiThread를 통해서만 호출하고요... 그 전엔 AsyncTask로 필터링을 합니다
해결 방법이 있긴 할텐데... 도저히 모르겠네요 ㅜ 도와주세요..