ws.disconnect();
ws = null;
}
super.onPause();
}
<BUG>public void onWebSocketTextFrame(final String jsonStr) {
((Vibrator) getActivity().getSystemService(Activity.VIBRATOR_SERVICE)).vibrate(250);
if (isAdded()) {</BUG>
getActivity().runOnUiThread(new Runnable() {
public void run() {

ws.disconnect();
ws = null;
}
super.onPause();
}
public void onWebSocketTextFrame(final String jsonStr) {
if (!isAdded()) {
return;
}
((Vibrator) getActivity().getSystemService(Activity.VIBRATOR_SERVICE)).vibrate(250);
getActivity().runOnUiThread(new Runnable() {
public void run() {
