Merge remote-tracking branch 'origin/master'

This commit is contained in:
Weblate 2015-11-17 17:25:28 +01:00
commit c613925bda
64 changed files with 82 additions and 50 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View file

@ -16,7 +16,7 @@
<LinearLayout <LinearLayout
android:id="@+id/context_menu_top_shadow" android:id="@+id/context_menu_top_shadow"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="20dp" android:layout_height="@dimen/context_menu_top_shadow_h"
android:orientation="horizontal"> android:orientation="horizontal">
</LinearLayout> </LinearLayout>
@ -32,22 +32,22 @@
android:id="@+id/context_menu_top_view" android:id="@+id/context_menu_top_view"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginBottom="16dp" android:layout_marginBottom="@dimen/context_menu_first_line_bottom_margin"
android:baselineAligned="false" android:baselineAligned="false"
android:orientation="horizontal"> android:orientation="horizontal">
<LinearLayout <LinearLayout
android:id="@+id/context_menu_icon_layout" android:id="@+id/context_menu_icon_layout"
android:layout_width="42dp" android:layout_width="52dp"
android:layout_height="match_parent"> android:layout_height="match_parent">
<ImageView <ImageView
android:id="@+id/context_menu_icon_view" android:id="@+id/context_menu_icon_view"
android:layout_width="@dimen/standard_icon_size" android:layout_width="@dimen/map_widget_icon"
android:layout_height="@dimen/standard_icon_size" android:layout_height="@dimen/map_widget_icon"
android:layout_marginLeft="16dp" android:layout_marginLeft="16dp"
android:layout_marginStart="12dp" android:layout_marginStart="12dp"
android:layout_marginTop="17dp" android:layout_marginTop="@dimen/context_menu_icon_top_padding"
android:src="@drawable/ic_action_building_number"/> android:src="@drawable/ic_action_building_number"/>
</LinearLayout> </LinearLayout>
@ -60,13 +60,13 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginLeft="30dp" android:layout_marginLeft="20dp"
android:orientation="horizontal"> android:orientation="horizontal">
<LinearLayout <LinearLayout
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="14dp" android:layout_marginTop="@dimen/context_menu_first_line_top_margin"
android:layout_weight="1"> android:layout_weight="1">
<TextView <TextView
@ -85,7 +85,7 @@
android:id="@+id/context_menu_close_btn_layout" android:id="@+id/context_menu_close_btn_layout"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="match_parent" android:layout_height="match_parent"
android:minWidth="76dp" android:minWidth="@dimen/context_menu_top_right_button_min_width"
android:orientation="horizontal"> android:orientation="horizontal">
<Button <Button
@ -94,8 +94,8 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?android:selectableItemBackground" android:background="?android:selectableItemBackground"
android:gravity="center" android:gravity="center"
android:paddingLeft="10dp" android:paddingLeft="@dimen/context_menu_button_padding_x"
android:paddingRight="10dp" android:paddingRight="@dimen/context_menu_button_padding_x"
android:text="@string/shared_string_others" android:text="@string/shared_string_others"
android:textColor="?attr/contextMenuButtonColor" android:textColor="?attr/contextMenuButtonColor"
android:textSize="@dimen/default_desc_text_size"/> android:textSize="@dimen/default_desc_text_size"/>
@ -107,8 +107,8 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginLeft="30dp" android:layout_marginLeft="20dp"
android:layout_marginTop="4dp" android:layout_marginTop="@dimen/context_menu_second_line_top_margin"
android:orientation="horizontal"> android:orientation="horizontal">
<LinearLayout <LinearLayout
@ -136,7 +136,7 @@
android:id="@+id/compass_layout" android:id="@+id/compass_layout"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="match_parent" android:layout_height="match_parent"
android:minWidth="76dp" android:minWidth="@dimen/context_menu_top_right_button_min_width"
android:orientation="horizontal"> android:orientation="horizontal">
<ImageView <ImageView
@ -170,10 +170,10 @@
android:id="@+id/title_button_container" android:id="@+id/title_button_container"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="-16dp" android:layout_marginTop="@dimen/context_menu_buttons_top_margin"
android:clickable="true" android:clickable="true"
android:orientation="horizontal" android:orientation="horizontal"
android:paddingBottom="4dp" android:paddingBottom="@dimen/context_menu_buttons_padding_bottom"
android:paddingLeft="62dp" android:paddingLeft="62dp"
android:paddingRight="2dp" android:paddingRight="2dp"
android:visibility="gone" android:visibility="gone"
@ -185,8 +185,8 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?android:selectableItemBackground" android:background="?android:selectableItemBackground"
android:gravity="left|center_vertical" android:gravity="left|center_vertical"
android:paddingLeft="10dp" android:paddingLeft="@dimen/context_menu_button_padding_x"
android:paddingRight="10dp" android:paddingRight="@dimen/context_menu_button_padding_x"
android:text="@string/recording_context_menu_play" android:text="@string/recording_context_menu_play"
android:textColor="?attr/contextMenuButtonColor" android:textColor="?attr/contextMenuButtonColor"
android:textSize="@dimen/default_desc_text_size"/> android:textSize="@dimen/default_desc_text_size"/>
@ -209,8 +209,8 @@
android:background="?android:selectableItemBackground" android:background="?android:selectableItemBackground"
android:drawableLeft="@drawable/ic_action_delete_dark" android:drawableLeft="@drawable/ic_action_delete_dark"
android:gravity="center" android:gravity="center"
android:paddingLeft="10dp" android:paddingLeft="@dimen/context_menu_button_padding_x"
android:paddingRight="10dp" android:paddingRight="@dimen/context_menu_button_padding_x"
android:text="@string/shared_string_delete" android:text="@string/shared_string_delete"
android:textColor="?attr/contextMenuButtonColor" android:textColor="?attr/contextMenuButtonColor"
android:textSize="@dimen/default_desc_text_size"/> android:textSize="@dimen/default_desc_text_size"/>
@ -221,12 +221,12 @@
android:id="@+id/title_progress_container" android:id="@+id/title_progress_container"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="-16dp" android:layout_marginTop="@dimen/context_menu_buttons_top_margin"
android:clickable="true" android:clickable="true"
android:gravity="center_vertical" android:gravity="center_vertical"
android:minHeight="52dp" android:minHeight="@dimen/context_menu_progress_min_height"
android:orientation="horizontal" android:orientation="horizontal"
android:paddingBottom="4dp" android:paddingBottom="@dimen/context_menu_buttons_padding_bottom"
android:paddingLeft="72dp" android:paddingLeft="72dp"
android:paddingRight="2dp" android:paddingRight="2dp"
android:visibility="gone" android:visibility="gone"
@ -264,12 +264,12 @@
<ImageView <ImageView
android:id="@+id/progressButton" android:id="@+id/progressButton"
android:layout_width="44dp" android:layout_width="@dimen/context_menu_progress_cancel_button_size"
android:layout_height="44dp" android:layout_height="@dimen/context_menu_progress_cancel_button_size"
android:layout_gravity="center_vertical" android:layout_gravity="center_vertical"
android:background="?android:selectableItemBackground" android:background="?android:selectableItemBackground"
android:scaleType="center" android:scaleType="center"
tools:src="@drawable/ic_action_remove_dark"/> tools:src="@drawable/map_action_cancel"/>
</LinearLayout> </LinearLayout>
@ -285,7 +285,7 @@
android:id="@+id/context_menu_buttons" android:id="@+id/context_menu_buttons"
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="54dp"> android:layout_height="@dimen/context_menu_action_buttons_h">
<ImageButton <ImageButton
android:id="@+id/context_menu_fav_button" android:id="@+id/context_menu_fav_button"
@ -295,7 +295,7 @@
android:layout_weight="1" android:layout_weight="1"
android:background="?attr/dashboard_button" android:background="?attr/dashboard_button"
android:scaleType="center" android:scaleType="center"
android:src="@drawable/ic_action_fav_dark"/> android:src="@drawable/map_action_fav_dark"/>
<View <View
android:layout_width="1dp" android:layout_width="1dp"
@ -310,7 +310,7 @@
android:layout_weight="1" android:layout_weight="1"
android:background="?attr/dashboard_button" android:background="?attr/dashboard_button"
android:scaleType="center" android:scaleType="center"
android:src="@drawable/map_action_waypoints"/> android:src="@drawable/map_action_flag_dark"/>
<View <View
android:layout_width="1dp" android:layout_width="1dp"
@ -325,7 +325,7 @@
android:layout_weight="1" android:layout_weight="1"
android:background="?attr/dashboard_button" android:background="?attr/dashboard_button"
android:scaleType="center" android:scaleType="center"
android:src="@drawable/abc_ic_menu_share_mtrl_alpha"/> android:src="@drawable/map_action_gshare_dark"/>
<View <View
android:layout_width="1dp" android:layout_width="1dp"
@ -340,7 +340,7 @@
android:layout_weight="1" android:layout_weight="1"
android:background="?attr/dashboard_button" android:background="?attr/dashboard_button"
android:scaleType="center" android:scaleType="center"
android:src="@drawable/ic_overflow_menu_white"/> android:src="@drawable/map_overflow_menu_white"/>
</LinearLayout> </LinearLayout>
@ -382,7 +382,7 @@
android:layout_width="@dimen/fab_size_with_shadow" android:layout_width="@dimen/fab_size_with_shadow"
android:layout_height="@dimen/fab_size_with_shadow" android:layout_height="@dimen/fab_size_with_shadow"
android:layout_gravity="right" android:layout_gravity="right"
android:layout_marginRight="12dp" android:layout_marginRight="@dimen/fab_margin_right"
android:background="@drawable/fab_background_style" android:background="@drawable/fab_background_style"
android:scaleType="center" android:scaleType="center"
android:src="@drawable/map_directions"/> android:src="@drawable/map_directions"/>

View file

@ -41,6 +41,25 @@
<dimen name="map_widget_icon_margin">6dp</dimen> <dimen name="map_widget_icon_margin">6dp</dimen>
<!-- ContextMenu -->
<dimen name="context_menu_top_shadow_h">30dp</dimen>
<dimen name="context_menu_icon_top_padding">25dp</dimen>
<dimen name="context_menu_first_line_top_margin">21dp</dimen>
<dimen name="context_menu_first_line_bottom_margin">24dp</dimen>
<dimen name="context_menu_second_line_top_margin">6dp</dimen>
<dimen name="context_menu_top_right_button_min_width">114dp</dimen>
<dimen name="context_menu_button_padding_x">15dp</dimen>
<dimen name="context_menu_buttons_top_margin">-24dp</dimen>
<dimen name="context_menu_buttons_padding_bottom">6dp</dimen>
<dimen name="context_menu_progress_min_height">78dp</dimen>
<dimen name="context_menu_progress_cancel_button_size">66dp</dimen>
<dimen name="context_menu_action_buttons_h">80dp</dimen>
<dimen name="fab_size_with_shadow">90dp</dimen>
<dimen name="fab_margin_right">18dp</dimen>
<!-- General --> <!-- General -->
<dimen name="list_item_height">65dp</dimen> <dimen name="list_item_height">65dp</dimen>

View file

@ -101,7 +101,23 @@
<dimen name="dash_margin">2dp</dimen> <dimen name="dash_margin">2dp</dimen>
<dimen name="dash_margin_h">6dp</dimen> <dimen name="dash_margin_h">6dp</dimen>
<!-- ContextMenu -->
<dimen name="context_menu_top_shadow_h">20dp</dimen>
<dimen name="context_menu_icon_top_padding">17dp</dimen>
<dimen name="context_menu_first_line_top_margin">14dp</dimen>
<dimen name="context_menu_first_line_bottom_margin">16dp</dimen>
<dimen name="context_menu_second_line_top_margin">4dp</dimen>
<dimen name="context_menu_top_right_button_min_width">76dp</dimen>
<dimen name="context_menu_button_padding_x">10dp</dimen>
<dimen name="context_menu_buttons_top_margin">-16dp</dimen>
<dimen name="context_menu_buttons_padding_bottom">4dp</dimen>
<dimen name="context_menu_progress_min_height">52dp</dimen>
<dimen name="context_menu_progress_cancel_button_size">44dp</dimen>
<dimen name="context_menu_action_buttons_h">54dp</dimen>
<dimen name="fab_size_with_shadow">62dp</dimen> <dimen name="fab_size_with_shadow">62dp</dimen>
<dimen name="fab_margin_right">12dp</dimen>
<!-- TextSizes --> <!-- TextSizes -->
<dimen name="default_list_text_size_large">19sp</dimen> <dimen name="default_list_text_size_large">19sp</dimen>

View file

@ -53,6 +53,7 @@ public class MapContextMenu extends MenuTitleController {
private LatLon myLocation; private LatLon myLocation;
private Float heading; private Float heading;
private boolean inLocationUpdate = false; private boolean inLocationUpdate = false;
private long locationUpdateTime;
private int favActionIconId; private int favActionIconId;
@ -348,7 +349,7 @@ public class MapContextMenu extends MenuTitleController {
if (menuController != null) { if (menuController != null) {
favActionIconId = menuController.getFavActionIconId(); favActionIconId = menuController.getFavActionIconId();
} else { } else {
favActionIconId = R.drawable.ic_action_fav_dark; favActionIconId = R.drawable.map_action_fav_dark;
} }
} }

View file

@ -360,13 +360,8 @@ public class MapContextMenuFragment extends Fragment implements DownloadEvents {
}); });
final ImageButton buttonWaypoint = (ImageButton) view.findViewById(R.id.context_menu_route_button); final ImageButton buttonWaypoint = (ImageButton) view.findViewById(R.id.context_menu_route_button);
if (getMyApplication().getTargetPointsHelper().getPointToNavigate() == null) { buttonWaypoint.setImageDrawable(iconsCache.getIcon(R.drawable.map_action_flag_dark,
buttonWaypoint.setImageDrawable(iconsCache.getIcon(R.drawable.ic_action_flag_dark,
light ? R.color.icon_color : R.color.dashboard_subheader_text_dark)); light ? R.color.icon_color : R.color.dashboard_subheader_text_dark));
} else {
buttonWaypoint.setImageDrawable(iconsCache.getIcon(R.drawable.map_action_waypoints,
light ? R.color.icon_color : R.color.dashboard_subheader_text_dark));
}
buttonWaypoint.setOnClickListener(new View.OnClickListener() { buttonWaypoint.setOnClickListener(new View.OnClickListener() {
@Override @Override
public void onClick(View v) { public void onClick(View v) {
@ -375,7 +370,7 @@ public class MapContextMenuFragment extends Fragment implements DownloadEvents {
}); });
final ImageButton buttonShare = (ImageButton) view.findViewById(R.id.context_menu_share_button); final ImageButton buttonShare = (ImageButton) view.findViewById(R.id.context_menu_share_button);
buttonShare.setImageDrawable(iconsCache.getIcon(R.drawable.abc_ic_menu_share_mtrl_alpha, buttonShare.setImageDrawable(iconsCache.getIcon(R.drawable.map_action_gshare_dark,
light ? R.color.icon_color : R.color.dashboard_subheader_text_dark)); light ? R.color.icon_color : R.color.dashboard_subheader_text_dark));
buttonShare.setOnClickListener(new View.OnClickListener() { buttonShare.setOnClickListener(new View.OnClickListener() {
@Override @Override
@ -385,7 +380,7 @@ public class MapContextMenuFragment extends Fragment implements DownloadEvents {
}); });
final ImageButton buttonMore = (ImageButton) view.findViewById(R.id.context_menu_more_button); final ImageButton buttonMore = (ImageButton) view.findViewById(R.id.context_menu_more_button);
buttonMore.setImageDrawable(iconsCache.getIcon(R.drawable.ic_overflow_menu_white, buttonMore.setImageDrawable(iconsCache.getIcon(R.drawable.map_overflow_menu_white,
light ? R.color.icon_color : R.color.dashboard_subheader_text_dark)); light ? R.color.icon_color : R.color.dashboard_subheader_text_dark));
buttonMore.setOnClickListener(new View.OnClickListener() { buttonMore.setOnClickListener(new View.OnClickListener() {
@Override @Override
@ -758,7 +753,8 @@ public class MapContextMenuFragment extends Fragment implements DownloadEvents {
private void updateCompassVisibility() { private void updateCompassVisibility() {
View compassView = view.findViewById(R.id.compass_layout); View compassView = view.findViewById(R.id.compass_layout);
if (menu.displayDistanceDirection() && menu.getCurrentMenuState() != MenuState.FULL_SCREEN) { boolean gpsFixed = getMyApplication().getLocationProvider().getGPSInfo().fixed;
if (gpsFixed && menu.displayDistanceDirection() && menu.getCurrentMenuState() != MenuState.FULL_SCREEN) {
updateDistanceDirection(); updateDistanceDirection();
compassView.setVisibility(View.VISIBLE); compassView.setVisibility(View.VISIBLE);
} else { } else {

View file

@ -138,7 +138,7 @@ public abstract class MenuController extends BaseMenuController {
protected void addMyLocationToPlainItems(PointDescription pointDescription, LatLon latLon) { protected void addMyLocationToPlainItems(PointDescription pointDescription, LatLon latLon) {
if (pointDescription != null) { if (pointDescription != null) {
addPlainMenuItem(R.drawable.map_my_location, PointDescription.getLocationName(getMapActivity(), addPlainMenuItem(R.drawable.ic_action_get_my_location, PointDescription.getLocationName(getMapActivity(),
latLon.getLatitude(), latLon.getLongitude(), true).replaceAll("\n", ""), false); latLon.getLatitude(), latLon.getLongitude(), true).replaceAll("\n", ""), false);
} }
} }

View file

@ -67,12 +67,12 @@ public class FavouritePointMenuController extends MenuController {
@Override @Override
public Drawable getSecondLineTypeIcon() { public Drawable getSecondLineTypeIcon() {
return getIcon(R.drawable.ic_small_group); return getIcon(R.drawable.map_small_group);
} }
@Override @Override
public int getFavActionIconId() { public int getFavActionIconId() {
return R.drawable.ic_action_edit_dark; return R.drawable.map_action_edit_dark;
} }
@Override @Override

View file

@ -66,7 +66,7 @@ public class WptPtMenuController extends MenuController {
if (Algorithms.isEmpty(getTypeStr())) { if (Algorithms.isEmpty(getTypeStr())) {
return null; return null;
} else { } else {
return getIcon(R.drawable.ic_small_group); return getIcon(R.drawable.map_small_group);
} }
} }

View file

@ -120,7 +120,7 @@ public class FavoritePointEditorFragment extends PointEditorFragment {
Algorithms.stringsEqual(favorite.getDescription(), point.getDescription())) { Algorithms.stringsEqual(favorite.getDescription(), point.getDescription())) {
if (needDismiss) { if (needDismiss) {
dismiss(true); dismiss(false);
} }
return; return;
} }

View file

@ -161,9 +161,9 @@ public abstract class PointEditorFragment extends Fragment {
@Override @Override
public void onDestroyView() { public void onDestroyView() {
// if (!wasSaved() && !getEditor().isNew()) { if (!wasSaved() && !getEditor().isNew()) {
// save(false); save(false);
// } }
super.onDestroyView(); super.onDestroyView();
getActivity().findViewById(R.id.MapHudButtonsOverlay).setVisibility(View.VISIBLE); getActivity().findViewById(R.id.MapHudButtonsOverlay).setVisibility(View.VISIBLE);
} }