Merge pull request #6017 from quelbs/FIX/dash-track-limit-#6002

Fix for #6002, number of tracks from disk on dashboard limited to 3
This commit is contained in:
vshcherb 2018-09-17 13:42:18 +02:00 committed by GitHub
commit 6e7c35a894
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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 --;
}