ServersActivity: Hide background icon if there are servers in the list

This commit is contained in:
Sebastian Kaspari 2010-04-15 23:50:35 +02:00
parent c7dd025509
commit 85dc0847e3
1 changed files with 6 additions and 1 deletions

View File

@ -271,11 +271,16 @@ public class ServersActivity extends ListActivity implements ServiceConnection,
}
/**
* On server status updat
* On server status update
*/
public void onStatusUpdate()
{
adapter.loadServers();
if (!adapter.isEmpty()) {
// Hide background if there are servers in the list
getListView().setBackgroundDrawable(null);
}
}
}