Kaydet (Commit) 2739333e authored tarafından Thorsten Behrens's avatar Thorsten Behrens

Prevent bluetooth list update from crashing incessantly.

Temp fix, need to fix the race here.

Change-Id: I95ef1ce206ba0e9059b59c10cf7a76d39df1b8b7
üst aaaf5126
......@@ -260,6 +260,7 @@ public class SelectorActivity extends SherlockActivity {
Server[] aServers = mCommunicationService.getServers();
/* TODO: this crashes currently - some concurrent modification on mBluetoothServers
// Bluetooth -- Remove old
for (Entry<Server, View> aEntry : mBluetoothServers.entrySet()) {
if (!Arrays.asList(aServers).contains(aEntry.getKey())) {
......@@ -268,6 +269,7 @@ public class SelectorActivity extends SherlockActivity {
.getParent());
}
}
*/
// Network -- Remove old
for (Entry<Server, View> aEntry : mNetworkServers.entrySet()) {
if (!Arrays.asList(aServers).contains(aEntry.getKey())) {
......@@ -381,4 +383,4 @@ public class SelectorActivity extends SherlockActivity {
return super.onContextItemSelected(item);
}
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
\ No newline at end of file
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment