ISE fix
This commit is contained in:
@ -150,6 +150,7 @@ public class TunnelListFragment extends Fragment implements
|
|||||||
};
|
};
|
||||||
|
|
||||||
public void updateState(State state) {
|
public void updateState(State state) {
|
||||||
|
try {
|
||||||
if (state == State.STOPPING || state == State.STOPPED ||
|
if (state == State.STOPPING || state == State.STOPPED ||
|
||||||
state == State.MANUAL_STOPPING ||
|
state == State.MANUAL_STOPPING ||
|
||||||
state == State.MANUAL_STOPPED ||
|
state == State.MANUAL_STOPPED ||
|
||||||
@ -158,6 +159,9 @@ public class TunnelListFragment extends Fragment implements
|
|||||||
getLoaderManager().destroyLoader(mClientTunnels ? CLIENT_LOADER_ID : SERVER_LOADER_ID);
|
getLoaderManager().destroyLoader(mClientTunnels ? CLIENT_LOADER_ID : SERVER_LOADER_ID);
|
||||||
else
|
else
|
||||||
initTunnels();
|
initTunnels();
|
||||||
|
} catch (IllegalStateException ise) {
|
||||||
|
// Fragment isn't attached to any activity, so ignore state change
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void initTunnels() {
|
private void initTunnels() {
|
||||||
|
Reference in New Issue
Block a user