organicmaps/map
Abhishek Bandyopadhyay 5670fe0ada [android] Fixed the crash while clicking on Deleted Bookmark Lists
On Bookmarks Lists page, if a User has created a new List along with `My Places` List and then deletes it, the deleted item stays on the List. Now, if the user clicks on the deleted List Item then the app was crashing as the deleted item is unavailable. Root cause of this issue is below -
- When a `category` is deleted then `deleteCategory()` of `BookmarkManager` gets called.
- The `deleteCategory()` internally calls `nativeDeleteCategory()`.
- After a `category` is successfully deleted, then `OnBookmarksChanged()` should be invoked in order to update the List. But this wasn't happening. So deleted category wasn't getting removed from the cached list. Thus the user deleted category was visible even after deletion.
- When the user clicked on the deleted `category`, it'll eventually crash as the `category` itself isn't present

Fix: Properly notify the UI about the deleted list from BookmarkManager::NotifyChanges()
Fixes: #3828

Signed-off-by: Abhishek Bandyopadhyay <abhishek.gnit.ece@gmail.com>
Signed-off-by: Alexander Borsuk <me@alex.bio>
2024-03-29 15:22:22 +02:00
..
benchmark_tool [3party] Treat gflags as a system header 2023-03-11 12:31:30 +01:00
extrapolation Minor code prettify. 2023-02-17 14:09:09 -03:00
extrapolation_benchmark Fix unqualified call to std::move warning 2023-04-29 14:53:39 +02:00
map_integration_tests [coding] Prettify uint32 <-> double coordinates conversion. 2022-11-13 14:01:29 +01:00
map_tests Set last modified time for imported KML or GPX before saving them 2024-03-17 17:16:56 +01:00
mwm_tests [core] Remove zoom argument from FeatureType::DebugString() 2023-10-20 14:34:08 -03:00
power_management Fix new warnings. Add -Wpedantic. 2023-07-05 08:17:42 -03:00
style_tests [styles] Adjust main and outdoors styles priorities 2023-11-29 15:54:07 -03:00
transit Unified kInvalidFeatureId. 2023-12-11 08:09:04 -03:00
api_mark_point.cpp
api_mark_point.hpp
benchmark_tools.cpp [3party] Separate cppjansson from 3party jansson 2023-01-03 23:12:24 +01:00
benchmark_tools.hpp
bookmark.cpp [bookmarks] Do not change bookmarks list modification date when hiding/showing it 2024-03-29 14:02:57 +01:00
bookmark.hpp [bookmarks] Do not change bookmarks list modification date when hiding/showing it 2024-03-29 14:02:57 +01:00
bookmark_helpers.cpp [bookmarks] Display swim icon for leisure-water_park 2024-01-15 10:20:41 +02:00
bookmark_helpers.hpp [kml] Load all kmls from kmz file 2023-12-12 19:14:15 -03:00
bookmark_manager.cpp [android] Fixed the crash while clicking on Deleted Bookmark Lists 2024-03-29 15:22:22 +02:00
bookmark_manager.hpp Set last modified time for imported KML or GPX before saving them 2024-03-17 17:16:56 +01:00
bookmarks_search_params.hpp
chart_generator.cpp [core] Add outdoors map style support 2023-11-02 09:50:46 -03:00
chart_generator.hpp Simplify (smooth) road altitudes chart. 2022-09-24 17:17:23 +03:00
CMakeLists.txt [search] Minor code enhancements around FreatureType::GetHouseNumber. 2023-04-30 10:55:00 -03:00
elevation_info.cpp [kml] Support multiple track geometry. 2022-12-01 13:42:18 +03:00
elevation_info.hpp
everywhere_search_callback.cpp
everywhere_search_callback.hpp
everywhere_search_params.hpp
features_fetcher.cpp [search] ToDo for m_bordersRect. 2022-10-06 10:26:34 +03:00
features_fetcher.hpp Fixed bug with ForEachFeatureIDInRect usage. 2023-07-02 11:47:40 -03:00
framework.cpp [search] Add main type to description 2024-02-10 16:01:02 -03:00
framework.hpp [android] Removed "Continue detecting your location?" dialog 2024-02-06 09:35:00 +02:00
framework_visualize.cpp [generator] City boundaries refactoring. 2023-11-22 12:39:58 -03:00
gps_track.cpp Fix unqualified call to std::move warning 2023-04-29 14:53:39 +02:00
gps_track.hpp
gps_track_collection.cpp
gps_track_collection.hpp
gps_track_filter.cpp
gps_track_filter.hpp
gps_track_storage.cpp
gps_track_storage.hpp
gps_tracker.cpp
gps_tracker.hpp
isolines_manager.cpp
isolines_manager.hpp
mwm_tree.hpp
mwm_url.cpp Minor C++ fixes 2024-02-29 10:05:55 +02:00
mwm_url.hpp Minor C++ fixes 2024-02-29 10:05:55 +02:00
osm_opening_hours.hpp
place_page_info.cpp [placepage] Add kDrinkingWaterYes (🚰), kDrinkingWaterNo (🚱) 2024-02-27 21:56:25 -03:00
place_page_info.hpp [core] Refactor move Internet to feature_utils 2024-02-24 22:26:39 -03:00
position_provider.hpp
routing_manager.cpp Intermediate points are numbered from 0 2023-09-19 16:58:42 +02:00
routing_manager.hpp In route preview mode user can continue route polyline by single tap. 2023-08-31 07:29:25 -03:00
routing_mark.cpp [core] Fix minor warnings 2023-09-15 23:31:11 +02:00
routing_mark.hpp [navigation] Populate incoming speed camera place page. 2022-10-06 11:53:10 +03:00
search_api.cpp [bookmarks] Remove max limit to search bookmarks 2023-10-10 21:26:35 -03:00
search_api.hpp [search] Added lower bound threshold for the viewport search. 2024-02-04 22:24:54 -03:00
search_mark.cpp [search] Get hotel's search mark using SetFromType 2024-01-05 07:30:54 -03:00
search_mark.hpp [search] Get hotel's search mark using SetFromType 2024-01-05 07:30:54 -03:00
search_product_info.hpp
track.cpp [bookmarks] implement the track color updating 2024-02-28 10:05:39 +02:00
track.hpp [bookmarks] implement the track color updating 2024-02-28 10:05:39 +02:00
track_mark.cpp
track_mark.hpp
traffic_manager.cpp
traffic_manager.hpp
user_mark.cpp
user_mark.hpp Removed explicit Point() default ctor. 2022-10-06 10:26:34 +03:00
user_mark_id_storage.cpp [bookmarks] Fixed last modified time categories order. 2022-08-30 12:29:36 +03:00
user_mark_id_storage.hpp
user_mark_layer.cpp [bookmarks] Do not change bookmarks list modification date when hiding/showing it 2024-03-29 14:02:57 +01:00
user_mark_layer.hpp [bookmarks] Do not change bookmarks list modification date when hiding/showing it 2024-03-29 14:02:57 +01:00
viewport_search_callback.cpp [desktop] Fixed search table update - always replace old results with new ones. 2022-10-04 09:18:53 +03:00
viewport_search_callback.hpp
viewport_search_params.hpp