Better print something on exception

This commit is contained in:
Albert Vaca
2015-09-11 03:44:52 -07:00
parent 9fed9e4b9a
commit 34ec43445d
2 changed files with 2 additions and 0 deletions

View File

@@ -353,6 +353,7 @@ public class DeviceFragment extends Fragment {
mActivity.invalidateOptionsMenu();
} catch (IllegalStateException e) {
e.printStackTrace();
//Ignore: The activity was closed while we were trying to update it
} catch (ConcurrentModificationException e) {
Log.e("DeviceActivity", "ConcurrentModificationException");

View File

@@ -160,6 +160,7 @@ public class PairingFragment extends Fragment implements PairingDeviceItem.Callb
//Restore scroll
list.setSelectionFromTop(index, top);
} catch (IllegalStateException e) {
e.printStackTrace();
//Ignore: The activity was closed while we were trying to update it
} finally {
listRefreshCalledThisFrame = false;