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:
parent
1635c0995f
commit
e370c5aa9e
1 changed files with 3 additions and 1 deletions
|
@ -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()) {
|
if(app.getSettings().SAVE_GLOBAL_TRACK_TO_GPX.get()) {
|
||||||
totalCount --;
|
totalCount --;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue