Fix for #6002, number of tracks from disk on dashboard limited to 3

Set the totalCount to 10 as this is the max number of rows available in settings.
The actual list is limited to the value defined in settings by DashboardOnMap.handleNumberOfRows.
This commit is contained in:
Michael 2018-09-10 10:47:51 +02:00
parent 1635c0995f
commit e370c5aa9e
No known key found for this signature in database
GPG key ID: D56A6B18219D5263

View file

@ -111,7 +111,9 @@ public class DashTrackFragment extends DashBaseFragment {
}
}
}
int totalCount = 3 + list.size() / 2;
// 10 is the maximum length of the list. The actual length is determined later by
// DashboardOnMap.handleNumberOfRows()
int totalCount = 10;
if(app.getSettings().SAVE_GLOBAL_TRACK_TO_GPX.get()) {
totalCount --;
}