diff --git a/OsmAnd/res/layout-large/main.xml b/OsmAnd/res/layout-large/main.xml index 3f4c844edf..62900bb3b4 100644 --- a/OsmAnd/res/layout-large/main.xml +++ b/OsmAnd/res/layout-large/main.xml @@ -1,8 +1,29 @@ - - + + + - + + + + + diff --git a/OsmAnd/res/layout/main.xml b/OsmAnd/res/layout/main.xml index 93c8d907aa..62900bb3b4 100644 --- a/OsmAnd/res/layout/main.xml +++ b/OsmAnd/res/layout/main.xml @@ -20,4 +20,10 @@ android:choiceMode="singleChoice" android:divider="@drawable/divider" android:dividerHeight="1px"/> + + diff --git a/OsmAnd/src/net/osmand/plus/activities/MapActivityActions.java b/OsmAnd/src/net/osmand/plus/activities/MapActivityActions.java index c21b413b02..0a4ebf7ee8 100644 --- a/OsmAnd/src/net/osmand/plus/activities/MapActivityActions.java +++ b/OsmAnd/src/net/osmand/plus/activities/MapActivityActions.java @@ -739,7 +739,7 @@ public class MapActivityActions implements DialogProvider { mDrawerList.setAdapter(listAdapter); if (getMyApplication().getSettings().isLightContentMenu()){ - mDrawerList.setBackgroundColor(mapActivity.getResources().getColor(R.color.shadow_color)); + mDrawerList.setBackgroundColor(mapActivity.getResources().getColor(R.color.color_white)); } else { mDrawerList.setBackgroundColor(mapActivity.getResources().getColor(R.color.dark_drawer_bg_color)); } diff --git a/OsmAnd/src/net/osmand/plus/helpers/WaypointDialogHelper.java b/OsmAnd/src/net/osmand/plus/helpers/WaypointDialogHelper.java index efddb224c5..ce4b560020 100644 --- a/OsmAnd/src/net/osmand/plus/helpers/WaypointDialogHelper.java +++ b/OsmAnd/src/net/osmand/plus/helpers/WaypointDialogHelper.java @@ -4,6 +4,7 @@ import java.util.ArrayList; import java.util.List; import android.support.v4.widget.DrawerLayout; +import android.widget.*; import net.osmand.Location; import net.osmand.data.LatLon; import net.osmand.data.LocationPoint; @@ -34,21 +35,13 @@ import android.view.Gravity; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; -import android.widget.AdapterView; -import android.widget.ArrayAdapter; -import android.widget.CompoundButton; -import android.widget.FrameLayout; -import android.widget.ImageButton; -import android.widget.ImageView; -import android.widget.ListView; -import android.widget.TextView; /** */ public class WaypointDialogHelper implements OsmAndLocationListener { private MapActivity mapActivity; private OsmandApplication app; - private DrawerLayout mainLayout; + private LinearLayout mainLayout; private WaypointHelper waypointHelper; public final static boolean OVERLAP_LAYOUT = true; // only true is supported @@ -60,7 +53,7 @@ public class WaypointDialogHelper implements OsmAndLocationListener { this.app = mapActivity.getMyApplication(); waypointHelper = this.app.getWaypointHelper(); this.mapActivity = mapActivity; - this.mainLayout = (DrawerLayout) mapActivity.findViewById(R.id.drawer_layout); + this.mainLayout = (LinearLayout) mapActivity.findViewById(R.id.dialog_layout); }