|
|
|
@ -140,16 +140,16 @@ class LocationDataFragment : EditableDataFragment(), StaticRowRepresentableDataS |
|
|
|
// Add info row to explain why we need the location permission |
|
|
|
// Add info row to explain why we need the location permission |
|
|
|
rows.add(CustomizableRowRepresentable(customViewType = RowViewType.INFO, resId = R.string.location_when_in_use_usage_description)) |
|
|
|
rows.add(CustomizableRowRepresentable(customViewType = RowViewType.INFO, resId = R.string.location_when_in_use_usage_description)) |
|
|
|
|
|
|
|
|
|
|
|
if (isLookingForPlaces) { |
|
|
|
// if (isLookingForPlaces) { |
|
|
|
rows.add(LocationRow.LOCATION_LOADER) |
|
|
|
// rows.add(LocationRow.LOCATION_LOADER) |
|
|
|
} |
|
|
|
// } |
|
|
|
|
|
|
|
// |
|
|
|
if (locationActivated && rowPlaces.size > 0) { |
|
|
|
// if (locationActivated && rowPlaces.size > 0) { |
|
|
|
rows.add(CustomizableRowRepresentable(resId = R.string.suggestions)) |
|
|
|
// rows.add(CustomizableRowRepresentable(resId = R.string.suggestions)) |
|
|
|
for (row in rowPlaces) { |
|
|
|
// for (row in rowPlaces) { |
|
|
|
rows.add(row) |
|
|
|
// rows.add(row) |
|
|
|
} |
|
|
|
// } |
|
|
|
} |
|
|
|
// } |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
|