From be696f5a5c4dea2ca41a63c749a93f715c93729f Mon Sep 17 00:00:00 2001 From: Maxime NATUREL Date: Wed, 27 Jul 2022 11:01:16 +0200 Subject: [PATCH] Align naming of components for the live location feature --- ...ylable_location_live_ended_banner_view.xml | 2 +- .../src/main/res/values/styles_location.xml | 4 +- vector/src/main/AndroidManifest.xml | 2 +- .../app/core/di/MavericksViewModelModule.kt | 6 +-- .../home/room/detail/TimelineFragment.kt | 10 ++--- .../item/MessageLiveLocationInactiveItem.kt | 4 +- .../timeline/item/MessageLiveLocationItem.kt | 26 ++++++------ .../item/MessageLiveLocationStartItem.kt | 4 +- ...View.kt => LiveLocationEndedBannerView.kt} | 16 ++++---- ... => LiveLocationMessageBannerViewState.kt} | 6 +-- ...ew.kt => LiveLocationRunningBannerView.kt} | 32 +++++++-------- ...tatusView.kt => LiveLocationStatusView.kt} | 8 ++-- ...eMapAction.kt => LiveLocationMapAction.kt} | 8 ++-- ... => LiveLocationMapMarkerOptionsDialog.kt} | 2 +- ...vity.kt => LiveLocationMapViewActivity.kt} | 16 ++++---- ...Events.kt => LiveLocationMapViewEvents.kt} | 4 +- ...ment.kt => LiveLocationMapViewFragment.kt} | 24 +++++------ ...ewModel.kt => LiveLocationMapViewModel.kt} | 28 ++++++------- ...ewState.kt => LiveLocationMapViewState.kt} | 6 +-- .../features/navigation/DefaultNavigator.kt | 10 ++--- .../app/features/navigation/Navigator.kt | 2 +- ... => ic_attachment_live_location_white.xml} | 0 ...heet_live_location_labs_flag_promotion.xml | 2 +- ...ml => fragment_live_location_map_view.xml} | 2 +- .../src/main/res/layout/fragment_timeline.xml | 6 +-- ...line_event_live_location_inactive_stub.xml | 22 +++++----- ...imeline_event_live_location_start_stub.xml | 40 +++++++++---------- .../item_timeline_event_location_stub.xml | 4 +- ...ml => view_live_location_ended_banner.xml} | 22 +++++----- ... => view_live_location_running_banner.xml} | 32 +++++++-------- ...atus.xml => view_live_location_status.xml} | 18 ++++----- .../view_location_sharing_option_picker.xml | 2 +- ...est.kt => LiveLocationMapViewModelTest.kt} | 12 +++--- 33 files changed, 191 insertions(+), 191 deletions(-) rename vector/src/main/java/im/vector/app/features/location/live/{LocationLiveEndedBannerView.kt => LiveLocationEndedBannerView.kt} (75%) rename vector/src/main/java/im/vector/app/features/location/live/{LocationLiveMessageBannerViewState.kt => LiveLocationMessageBannerViewState.kt} (87%) rename vector/src/main/java/im/vector/app/features/location/live/{LocationLiveRunningBannerView.kt => LiveLocationRunningBannerView.kt} (81%) rename vector/src/main/java/im/vector/app/features/location/live/{LocationLiveStatusView.kt => LiveLocationStatusView.kt} (82%) rename vector/src/main/java/im/vector/app/features/location/live/map/{LocationLiveMapAction.kt => LiveLocationMapAction.kt} (79%) rename vector/src/main/java/im/vector/app/features/location/live/map/{LocationLiveMapMarkerOptionsDialog.kt => LiveLocationMapMarkerOptionsDialog.kt} (97%) rename vector/src/main/java/im/vector/app/features/location/live/map/{LocationLiveMapViewActivity.kt => LiveLocationMapViewActivity.kt} (74%) rename vector/src/main/java/im/vector/app/features/location/live/map/{LocationLiveMapViewEvents.kt => LiveLocationMapViewEvents.kt} (84%) rename vector/src/main/java/im/vector/app/features/location/live/map/{LocationLiveMapViewFragment.kt => LiveLocationMapViewFragment.kt} (93%) rename vector/src/main/java/im/vector/app/features/location/live/map/{LocationLiveMapViewModel.kt => LiveLocationMapViewModel.kt} (73%) rename vector/src/main/java/im/vector/app/features/location/live/map/{LocationLiveMapViewState.kt => LiveLocationMapViewState.kt} (90%) rename vector/src/main/res/drawable/{ic_attachment_location_live_white.xml => ic_attachment_live_location_white.xml} (100%) rename vector/src/main/res/layout/{fragment_location_live_map_view.xml => fragment_live_location_map_view.xml} (97%) rename vector/src/main/res/layout/{view_location_live_ended_banner.xml => view_live_location_ended_banner.xml} (70%) rename vector/src/main/res/layout/{view_location_live_running_banner.xml => view_live_location_running_banner.xml} (71%) rename vector/src/main/res/layout/{view_location_live_status.xml => view_live_location_status.xml} (73%) rename vector/src/test/java/im/vector/app/features/location/live/map/{LocationLiveMapViewModelTest.kt => LiveLocationMapViewModelTest.kt} (90%) diff --git a/library/ui-styles/src/main/res/values/stylable_location_live_ended_banner_view.xml b/library/ui-styles/src/main/res/values/stylable_location_live_ended_banner_view.xml index 81e377d39b..30ac6229c5 100644 --- a/library/ui-styles/src/main/res/values/stylable_location_live_ended_banner_view.xml +++ b/library/ui-styles/src/main/res/values/stylable_location_live_ended_banner_view.xml @@ -1,7 +1,7 @@ - + diff --git a/library/ui-styles/src/main/res/values/styles_location.xml b/library/ui-styles/src/main/res/values/styles_location.xml index 41ddbc73ca..ee893046ba 100644 --- a/library/ui-styles/src/main/res/values/styles_location.xml +++ b/library/ui-styles/src/main/res/values/styles_location.xml @@ -1,7 +1,7 @@ - -