From 24d09342541de2fbb24480da0d93b4fd3336060c Mon Sep 17 00:00:00 2001 From: Alexey Kulish Date: Tue, 29 Sep 2015 11:53:08 +0300 Subject: [PATCH] Context menu - edit favorites in progress --- .../res/layout/favorite_categories_dialog.xml | 18 ++++ .../layout/favorite_category_dialog_item.xml | 30 ++++++ OsmAnd/res/layout/point_editor_fragment.xml | 5 +- OsmAnd/res/values/strings.xml | 2 + .../net/osmand/plus/FavouritesDbHelper.java | 8 ++ .../IndexItemCategoryWithSubcat.java | 2 +- .../details/AmenityMenuBuilder.java | 4 +- .../editors/FavoritePointEditorFragment.java | 42 +++++--- .../editors/PointEditorFragment.java | 67 ++++++++----- .../editors/dialogs/CategoryDialogs.java | 5 - .../dialogs/SelectCategoryDialogFragment.java | 95 +++++++++++++++++++ 11 files changed, 234 insertions(+), 44 deletions(-) create mode 100644 OsmAnd/res/layout/favorite_categories_dialog.xml create mode 100644 OsmAnd/res/layout/favorite_category_dialog_item.xml delete mode 100644 OsmAnd/src/net/osmand/plus/mapcontextmenu/editors/dialogs/CategoryDialogs.java create mode 100644 OsmAnd/src/net/osmand/plus/mapcontextmenu/editors/dialogs/SelectCategoryDialogFragment.java diff --git a/OsmAnd/res/layout/favorite_categories_dialog.xml b/OsmAnd/res/layout/favorite_categories_dialog.xml new file mode 100644 index 0000000000..cbe0b3625f --- /dev/null +++ b/OsmAnd/res/layout/favorite_categories_dialog.xml @@ -0,0 +1,18 @@ + + + + + + + + diff --git a/OsmAnd/res/layout/favorite_category_dialog_item.xml b/OsmAnd/res/layout/favorite_category_dialog_item.xml new file mode 100644 index 0000000000..f8fdc8fd67 --- /dev/null +++ b/OsmAnd/res/layout/favorite_category_dialog_item.xml @@ -0,0 +1,30 @@ + + + + + + + + +