From 04422bef3fa3396d31a497a3ac6ee2dec5bc6497 Mon Sep 17 00:00:00 2001 From: Dzmitry Yarmolenka Date: Mon, 2 Aug 2021 18:20:39 +0200 Subject: [PATCH] [android] Cleaned up old legacy pre-api21 checks. Removed some unused layouts and classes. Signed-off-by: Dzmitry Yarmolenka --- .../layout-land/dialog_stacked_buttons.xml | 12 +-- android/res/layout-land/routing_details.xml | 1 - .../layout-w1020dp-land/routing_details.xml | 1 - android/res/layout/bought_content.xml | 25 ------ android/res/layout/dialog_stacked_buttons.xml | 12 +-- android/res/layout/fragment_auth_editor.xml | 3 +- .../layout/fragment_auth_editor_dialog.xml | 6 +- android/res/layout/fragment_confirmation.xml | 58 -------------- .../res/layout/fragment_driving_options.xml | 15 ++-- android/res/layout/fragment_osm_login.xml | 3 +- android/res/layout/fragment_search.xml | 3 +- .../layout/item_bookmark_category_create.xml | 4 +- .../res/layout/item_bookmark_create_group.xml | 3 +- android/res/layout/item_bookmark_import.xml | 4 +- android/res/layout/item_facility.xml | 26 ------- android/res/layout/item_guide_info.xml | 34 --------- android/res/layout/item_image.xml | 15 ---- android/res/layout/item_nearby.xml | 60 --------------- android/res/layout/item_search_more.xml | 29 ------- android/res/layout/routing_details.xml | 1 - android/res/layout/search_filter_panel.xml | 3 +- android/res/layout/taxi_pager_item.xml | 23 ------ .../menu_bookmark_category_restriction.xml | 10 --- android/res/menu/menu_bookmarks_catalog.xml | 6 -- android/res/values/styles-place_page.xml | 4 +- android/res/values/styles-text.xml | 18 ++--- android/res/values/styles.xml | 27 ++++--- android/res/values/themes-base.xml | 16 ++-- android/res/values/themes.xml | 44 +++++------ .../src/com/mapswithme/maps/MwmActivity.java | 2 +- .../dialog/ConfirmationDialogFactory.java | 13 ---- .../DefaultConfirmationAlertDialog.java | 12 --- .../maps/routing/TransitStepView.java | 3 - .../widget/NestedScrollViewClickFixed.java | 14 +--- .../maps/widget/PlaceholderView.java | 3 - .../maps/widget/RoutingToolbarButton.java | 7 +- .../widget/placepage/FloatingMarkerView.java | 3 - .../maps/widget/placepage/PlacePageView.java | 3 +- .../util/PreLollipopSSLSocketFactory.java | 76 ------------------- android/src/com/mapswithme/util/UiUtils.java | 11 +-- android/src/com/mapswithme/util/Utils.java | 5 +- 41 files changed, 85 insertions(+), 533 deletions(-) delete mode 100644 android/res/layout/bought_content.xml delete mode 100644 android/res/layout/fragment_confirmation.xml delete mode 100644 android/res/layout/item_facility.xml delete mode 100644 android/res/layout/item_guide_info.xml delete mode 100644 android/res/layout/item_image.xml delete mode 100644 android/res/layout/item_nearby.xml delete mode 100644 android/res/layout/item_search_more.xml delete mode 100644 android/res/layout/taxi_pager_item.xml delete mode 100644 android/res/menu/menu_bookmark_category_restriction.xml delete mode 100644 android/res/menu/menu_bookmarks_catalog.xml delete mode 100644 android/src/com/mapswithme/maps/dialog/ConfirmationDialogFactory.java delete mode 100644 android/src/com/mapswithme/maps/dialog/DefaultConfirmationAlertDialog.java delete mode 100644 android/src/com/mapswithme/util/PreLollipopSSLSocketFactory.java diff --git a/android/res/layout-land/dialog_stacked_buttons.xml b/android/res/layout-land/dialog_stacked_buttons.xml index 2f4467e35a..106e9e1221 100644 --- a/android/res/layout-land/dialog_stacked_buttons.xml +++ b/android/res/layout-land/dialog_stacked_buttons.xml @@ -18,8 +18,7 @@ + tools:text="Use mobile internet to show detailed information?"/> + tools:text="Use Always"/> + tools:text="Only Today"/> + tools:text="Do not Use Today"/> diff --git a/android/res/layout-land/routing_details.xml b/android/res/layout-land/routing_details.xml index 370d5ac9a1..020bc4e4d1 100644 --- a/android/res/layout-land/routing_details.xml +++ b/android/res/layout-land/routing_details.xml @@ -22,6 +22,5 @@ android:textColor="?colorAccent" android:visibility="gone" tools:text="43 m" - tools:targetApi="jelly_bean" tools:visibility="visible"/> diff --git a/android/res/layout-w1020dp-land/routing_details.xml b/android/res/layout-w1020dp-land/routing_details.xml index d35ce17136..f0b132825b 100644 --- a/android/res/layout-w1020dp-land/routing_details.xml +++ b/android/res/layout-w1020dp-land/routing_details.xml @@ -33,6 +33,5 @@ android:textColor="?colorAccent" android:visibility="gone" tools:text="43 m" - tools:targetApi="jelly_bean" tools:visibility="visible"/> diff --git a/android/res/layout/bought_content.xml b/android/res/layout/bought_content.xml deleted file mode 100644 index 2e77767615..0000000000 --- a/android/res/layout/bought_content.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - diff --git a/android/res/layout/dialog_stacked_buttons.xml b/android/res/layout/dialog_stacked_buttons.xml index 409f88f1cd..603e50266e 100644 --- a/android/res/layout/dialog_stacked_buttons.xml +++ b/android/res/layout/dialog_stacked_buttons.xml @@ -18,8 +18,7 @@ + tools:text="Use mobile internet to show detailed information?"/> + tools:text="Use Always"/> + tools:text="Only Today"/> + tools:text="Do not Use Today"/> diff --git a/android/res/layout/fragment_auth_editor.xml b/android/res/layout/fragment_auth_editor.xml index 00da26fdd8..14fd0673b3 100644 --- a/android/res/layout/fragment_auth_editor.xml +++ b/android/res/layout/fragment_auth_editor.xml @@ -103,8 +103,7 @@ android:fontFamily="@string/robotoMedium" android:text="@string/openstreetmap" android:textAllCaps="false" - android:textAppearance="@style/MwmTextAppearance.Body1.Light" - tools:targetApi="jelly_bean"/> + android:textAppearance="@style/MwmTextAppearance.Body1.Light"/> + android:textAppearance="@style/MwmTextAppearance.Body1.Light"/>