From c3b5928f635e22237c25c1646f1b4358f93ef108 Mon Sep 17 00:00:00 2001 From: max-klaus <53395422+max-klaus@users.noreply.github.com> Date: Wed, 2 Oct 2019 15:37:41 +0300 Subject: [PATCH] Revert "Add "Download Map" Top Sheet card" --- .../java/net/osmand/map/OsmandRegions.java | 4 - OsmAnd/res/anim/slide_in_top.xml | 7 - OsmAnd/res/anim/slide_out_top.xml | 7 - OsmAnd/res/drawable/bg_top_menu_dark.xml | 13 -- OsmAnd/res/drawable/bg_top_menu_light.xml | 13 -- ..._top_sheet_bottom_sides_landscape_dark.xml | 13 -- ...top_sheet_bottom_sides_landscape_light.xml | 13 -- OsmAnd/res/layout/bottom_sheet_dialog.xml | 18 ++ .../res/layout/card_download_detailed_map.xml | 72 ------- OsmAnd/res/values-large/sizes.xml | 2 - OsmAnd/res/values/sizes.xml | 2 - OsmAnd/res/values/strings.xml | 1 - OsmAnd/res/values/styles.xml | 5 - .../src/net/osmand/plus/AppInitializer.java | 1 + .../plus/activities/MapActivityLayers.java | 2 +- ...heetDialog.java => BottomSheetDialog.java} | 75 +------- .../plus/base/BottomSheetDialogFragment.java | 101 +++++++++- .../base/MenuBottomSheetDialogFragment.java | 39 ++++ .../plus/base/OsmAndSheetDialogFragment.java | 166 ---------------- .../net/osmand/plus/base/SheetDialogType.java | 19 -- .../plus/base/TopSheetDialogFragment.java | 9 - .../ui/DownloadMapDialogFragment.java | 178 ------------------ .../download/ui/DownloadMapDialogManager.java | 35 ---- ...ionalActionsBottomSheetDialogFragment.java | 3 +- .../plus/views/DownloadedRegionsLayer.java | 75 -------- 25 files changed, 166 insertions(+), 707 deletions(-) delete mode 100644 OsmAnd/res/anim/slide_in_top.xml delete mode 100644 OsmAnd/res/anim/slide_out_top.xml delete mode 100644 OsmAnd/res/drawable/bg_top_menu_dark.xml delete mode 100644 OsmAnd/res/drawable/bg_top_menu_light.xml delete mode 100644 OsmAnd/res/drawable/bg_top_sheet_bottom_sides_landscape_dark.xml delete mode 100644 OsmAnd/res/drawable/bg_top_sheet_bottom_sides_landscape_light.xml create mode 100644 OsmAnd/res/layout/bottom_sheet_dialog.xml delete mode 100644 OsmAnd/res/layout/card_download_detailed_map.xml rename OsmAnd/src/net/osmand/plus/base/{OsmandSheetDialog.java => BottomSheetDialog.java} (58%) delete mode 100644 OsmAnd/src/net/osmand/plus/base/OsmAndSheetDialogFragment.java delete mode 100644 OsmAnd/src/net/osmand/plus/base/SheetDialogType.java delete mode 100644 OsmAnd/src/net/osmand/plus/base/TopSheetDialogFragment.java delete mode 100644 OsmAnd/src/net/osmand/plus/download/ui/DownloadMapDialogFragment.java delete mode 100644 OsmAnd/src/net/osmand/plus/download/ui/DownloadMapDialogManager.java diff --git a/OsmAnd-java/src/main/java/net/osmand/map/OsmandRegions.java b/OsmAnd-java/src/main/java/net/osmand/map/OsmandRegions.java index 1e0238159c..13f3ed42f1 100644 --- a/OsmAnd-java/src/main/java/net/osmand/map/OsmandRegions.java +++ b/OsmAnd-java/src/main/java/net/osmand/map/OsmandRegions.java @@ -707,10 +707,6 @@ public class OsmandRegions { public BinaryMapDataObject getSmallestBinaryMapDataObjectAt(LatLon latLon) throws IOException { List mapDataObjects = getBinaryMapDataObjectsAt(latLon); - return getSmallestBinaryMapDataObjectAt(mapDataObjects); - } - - public BinaryMapDataObject getSmallestBinaryMapDataObjectAt(List mapDataObjects) throws IOException { BinaryMapDataObject res = null; double smallestArea = -1; for (BinaryMapDataObject o : mapDataObjects) { diff --git a/OsmAnd/res/anim/slide_in_top.xml b/OsmAnd/res/anim/slide_in_top.xml deleted file mode 100644 index 5bc36e7675..0000000000 --- a/OsmAnd/res/anim/slide_in_top.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - \ No newline at end of file diff --git a/OsmAnd/res/anim/slide_out_top.xml b/OsmAnd/res/anim/slide_out_top.xml deleted file mode 100644 index f50ed1818f..0000000000 --- a/OsmAnd/res/anim/slide_out_top.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - \ No newline at end of file diff --git a/OsmAnd/res/drawable/bg_top_menu_dark.xml b/OsmAnd/res/drawable/bg_top_menu_dark.xml deleted file mode 100644 index 2ef9d04f24..0000000000 --- a/OsmAnd/res/drawable/bg_top_menu_dark.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - \ No newline at end of file diff --git a/OsmAnd/res/drawable/bg_top_menu_light.xml b/OsmAnd/res/drawable/bg_top_menu_light.xml deleted file mode 100644 index 0bc7186f50..0000000000 --- a/OsmAnd/res/drawable/bg_top_menu_light.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - \ No newline at end of file diff --git a/OsmAnd/res/drawable/bg_top_sheet_bottom_sides_landscape_dark.xml b/OsmAnd/res/drawable/bg_top_sheet_bottom_sides_landscape_dark.xml deleted file mode 100644 index 7abde0796c..0000000000 --- a/OsmAnd/res/drawable/bg_top_sheet_bottom_sides_landscape_dark.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - \ No newline at end of file diff --git a/OsmAnd/res/drawable/bg_top_sheet_bottom_sides_landscape_light.xml b/OsmAnd/res/drawable/bg_top_sheet_bottom_sides_landscape_light.xml deleted file mode 100644 index ff0f70412f..0000000000 --- a/OsmAnd/res/drawable/bg_top_sheet_bottom_sides_landscape_light.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - \ No newline at end of file diff --git a/OsmAnd/res/layout/bottom_sheet_dialog.xml b/OsmAnd/res/layout/bottom_sheet_dialog.xml new file mode 100644 index 0000000000..412a51f9ab --- /dev/null +++ b/OsmAnd/res/layout/bottom_sheet_dialog.xml @@ -0,0 +1,18 @@ + + + + + + + + diff --git a/OsmAnd/res/layout/card_download_detailed_map.xml b/OsmAnd/res/layout/card_download_detailed_map.xml deleted file mode 100644 index b20741d3d6..0000000000 --- a/OsmAnd/res/layout/card_download_detailed_map.xml +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/OsmAnd/res/values-large/sizes.xml b/OsmAnd/res/values-large/sizes.xml index 892b4c3048..d85f69044b 100644 --- a/OsmAnd/res/values-large/sizes.xml +++ b/OsmAnd/res/values-large/sizes.xml @@ -13,8 +13,6 @@ 510dp 496dp - 42dp - 60dp 78dp 66dp diff --git a/OsmAnd/res/values/sizes.xml b/OsmAnd/res/values/sizes.xml index 1472afb0eb..5ec78f9bce 100644 --- a/OsmAnd/res/values/sizes.xml +++ b/OsmAnd/res/values/sizes.xml @@ -19,8 +19,6 @@ 24dp 12dp 3dp - - 28dp 36dp 6dp diff --git a/OsmAnd/res/values/strings.xml b/OsmAnd/res/values/strings.xml index d999d0d333..ee4522d503 100644 --- a/OsmAnd/res/values/strings.xml +++ b/OsmAnd/res/values/strings.xml @@ -14,7 +14,6 @@ By default Plugin settings Logcat buffer - Download detailed %s map, to view this area. Application profile changed to \"%s\" Switch profile Configure profile diff --git a/OsmAnd/res/values/styles.xml b/OsmAnd/res/values/styles.xml index 27c6246948..0c5caa220e 100644 --- a/OsmAnd/res/values/styles.xml +++ b/OsmAnd/res/values/styles.xml @@ -647,11 +647,6 @@ @anim/shrink_from_top - -