Fixed #2198. And irrelevant changes int OsMoGroupActivity.
This commit is contained in:
parent
aed14075d3
commit
ebaf4e53c5
2 changed files with 5 additions and 5 deletions
|
@ -80,7 +80,7 @@ public class PerformLiveUpdateAsyncTask
|
|||
} else {
|
||||
settings.LIVE_UPDATES_RETRIES.resetToDefault();
|
||||
List<IncrementalChangesManager.IncrementalUpdate> ll = result.getItemsForUpdate();
|
||||
if (!ll.isEmpty()) {
|
||||
if (ll != null && !ll.isEmpty()) {
|
||||
ArrayList<IndexItem> itemsToDownload = new ArrayList<>(ll.size());
|
||||
for (IncrementalChangesManager.IncrementalUpdate iu : ll) {
|
||||
IndexItem indexItem = new IndexItem(iu.fileName, "Incremental update",
|
||||
|
|
|
@ -617,9 +617,9 @@ public class OsMoGroupsActivity extends OsmandExpandableListActivity implements
|
|||
if (!checkOperationIsNotRunning()) {
|
||||
return;
|
||||
}
|
||||
String operation = osMoPlugin.getGroups().leaveGroup((OsMoGroup) selectedObject);
|
||||
String operation = osMoPlugin.getGroups().leaveGroup(selectedObject);
|
||||
startLongRunningOperation(operation);
|
||||
adapter.update((OsMoGroup) selectedObject);
|
||||
adapter.update(selectedObject);
|
||||
adapter.notifyDataSetChanged();
|
||||
|
||||
}
|
||||
|
@ -1037,7 +1037,7 @@ public class OsMoGroupsActivity extends OsmandExpandableListActivity implements
|
|||
}
|
||||
|
||||
public void hideProgressBar() {
|
||||
OsMoGroupsActivity.this.operation = null;
|
||||
this.operation = null;
|
||||
setSupportProgressBarIndeterminateVisibility(false);
|
||||
}
|
||||
|
||||
|
@ -1210,7 +1210,7 @@ public class OsMoGroupsActivity extends OsmandExpandableListActivity implements
|
|||
} else {
|
||||
label.setTypeface(Typeface.DEFAULT, Typeface.ITALIC);
|
||||
}
|
||||
View v = (View) row.findViewById(R.id.settings);
|
||||
View v = row.findViewById(R.id.settings);
|
||||
if(model.isMainGroup()) {
|
||||
v.setVisibility(View.GONE);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue