mirror of
https://invent.kde.org/network/kdeconnect-android.git
synced 2025-12-12 20:35:58 +01:00
Better print something on exception
This commit is contained in:
@@ -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");
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user