Remove unused rows

filterfix
Laurent 5 years ago
parent 19cf418688
commit 860d203be7
  1. 20
      app/src/main/java/net/pokeranalytics/android/ui/modules/data/LocationDataFragment.kt

@ -140,16 +140,16 @@ class LocationDataFragment : EditableDataFragment(), StaticRowRepresentableDataS
// 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))
if (isLookingForPlaces) {
rows.add(LocationRow.LOCATION_LOADER)
}
if (locationActivated && rowPlaces.size > 0) {
rows.add(CustomizableRowRepresentable(resId = R.string.suggestions))
for (row in rowPlaces) {
rows.add(row)
}
}
// if (isLookingForPlaces) {
// rows.add(LocationRow.LOCATION_LOADER)
// }
//
// if (locationActivated && rowPlaces.size > 0) {
// rows.add(CustomizableRowRepresentable(resId = R.string.suggestions))
// for (row in rowPlaces) {
// rows.add(row)
// }
// }
}
/**

Loading…
Cancel
Save