2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-31 22:25:08 +00:00

Fixed crash

This commit is contained in:
Albert Vaca
2015-09-11 01:23:07 -07:00
parent 52a61f5663
commit cf8f87b6a1

View File

@@ -350,14 +350,15 @@ public class DeviceFragment extends Fragment {
ListAdapter adapter = new ListAdapter(mActivity, items);
buttonsList.setAdapter(adapter);
mActivity.invalidateOptionsMenu();
} catch (IllegalStateException e) {
//Ignore: The activity was closed while we were trying to update it
} catch (ConcurrentModificationException e) {
Log.e("DeviceActivity", "ConcurrentModificationException");
this.run(); //Try again
}
mActivity.invalidateOptionsMenu();
}
});