From 7f52f21cfeff6c585354b8ba9c5f3733933ff826 Mon Sep 17 00:00:00 2001 From: Dima-1 Date: Thu, 18 Jun 2020 16:37:30 +0300 Subject: [PATCH] Fix remove Add action from add action menu --- .../src/net/osmand/plus/quickaction/QuickAction.java | 10 ---------- .../osmand/plus/quickaction/QuickActionRegistry.java | 2 -- 2 files changed, 12 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/quickaction/QuickAction.java b/OsmAnd/src/net/osmand/plus/quickaction/QuickAction.java index 7a0cdc2c07..c2e73cdc1b 100644 --- a/OsmAnd/src/net/osmand/plus/quickaction/QuickAction.java +++ b/OsmAnd/src/net/osmand/plus/quickaction/QuickAction.java @@ -7,20 +7,10 @@ import android.view.View; import android.view.ViewGroup; import android.widget.EditText; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; - -import androidx.annotation.DrawableRes; -import androidx.annotation.StringRes; - import net.osmand.plus.OsmandApplication; import net.osmand.plus.activities.MapActivity; -import net.osmand.plus.quickaction.actions.NewAction; import net.osmand.util.Algorithms; -import java.io.IOException; import java.util.HashMap; import java.util.List; import java.util.Map; diff --git a/OsmAnd/src/net/osmand/plus/quickaction/QuickActionRegistry.java b/OsmAnd/src/net/osmand/plus/quickaction/QuickActionRegistry.java index 01c38b7936..f34f539539 100644 --- a/OsmAnd/src/net/osmand/plus/quickaction/QuickActionRegistry.java +++ b/OsmAnd/src/net/osmand/plus/quickaction/QuickActionRegistry.java @@ -31,7 +31,6 @@ import net.osmand.plus.quickaction.actions.NavReplaceDestinationAction; import net.osmand.plus.quickaction.actions.NavResumePauseAction; import net.osmand.plus.quickaction.actions.NavStartStopAction; import net.osmand.plus.quickaction.actions.NavVoiceAction; -import net.osmand.plus.quickaction.actions.NewAction; import net.osmand.plus.quickaction.actions.ShowHideFavoritesAction; import net.osmand.plus.quickaction.actions.ShowHideGpxTracksAction; import net.osmand.plus.quickaction.actions.ShowHidePoiAction; @@ -216,7 +215,6 @@ public class QuickActionRegistry { public List updateActionTypes() { List quickActionTypes = new ArrayList<>(); - quickActionTypes.add(NewAction.TYPE); quickActionTypes.add(FavoriteAction.TYPE); quickActionTypes.add(GPXAction.TYPE); quickActionTypes.add(MarkerAction.TYPE);