Fix route settings
This commit is contained in:
parent
43224a04cc
commit
50367851eb
1 changed files with 3 additions and 2 deletions
|
@ -279,7 +279,7 @@ public class RoutePreferencesMenu {
|
||||||
public ArrayAdapter<LocalRoutingParameter> getRoutePreferencesDrawerAdapter(final boolean nightMode) {
|
public ArrayAdapter<LocalRoutingParameter> getRoutePreferencesDrawerAdapter(final boolean nightMode) {
|
||||||
|
|
||||||
listAdapter = new ArrayAdapter<LocalRoutingParameter>(mapActivity, R.layout.layers_list_activity_item, R.id.title,
|
listAdapter = new ArrayAdapter<LocalRoutingParameter>(mapActivity, R.layout.layers_list_activity_item, R.id.title,
|
||||||
getRoutingParameters(settings.APPLICATION_MODE.get())) {
|
getRoutingParameters(routingHelper.getAppMode()/*settings.APPLICATION_MODE.get()*/)) {
|
||||||
@Override
|
@Override
|
||||||
public View getView(final int position, View convertView, ViewGroup parent) {
|
public View getView(final int position, View convertView, ViewGroup parent) {
|
||||||
LocalRoutingParameter parameter = getItem(position);
|
LocalRoutingParameter parameter = getItem(position);
|
||||||
|
@ -560,7 +560,8 @@ public class RoutePreferencesMenu {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void updateParameters() {
|
private void updateParameters() {
|
||||||
ApplicationMode am = settings.APPLICATION_MODE.get();
|
//ApplicationMode am = settings.APPLICATION_MODE.get();
|
||||||
|
ApplicationMode am = routingHelper.getAppMode();
|
||||||
listAdapter.setNotifyOnChange(false);
|
listAdapter.setNotifyOnChange(false);
|
||||||
listAdapter.clear();
|
listAdapter.clear();
|
||||||
for (LocalRoutingParameter r : getRoutingParameters(am)) {
|
for (LocalRoutingParameter r : getRoutingParameters(am)) {
|
||||||
|
|
Loading…
Reference in a new issue