From fe2f690ababe00c029d1a98f5ada22ab55dd39a6 Mon Sep 17 00:00:00 2001 From: GaidamakUA Date: Thu, 31 Mar 2016 15:27:45 +0300 Subject: [PATCH] Fixes #2394. Problem with 2.3 compatibility. --- .../src/net/osmand/plus/download/ui/SearchDialogFragment.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/download/ui/SearchDialogFragment.java b/OsmAnd/src/net/osmand/plus/download/ui/SearchDialogFragment.java index 7498d10491..5428db4149 100644 --- a/OsmAnd/src/net/osmand/plus/download/ui/SearchDialogFragment.java +++ b/OsmAnd/src/net/osmand/plus/download/ui/SearchDialogFragment.java @@ -5,6 +5,7 @@ import android.os.Bundle; import android.support.v4.app.DialogFragment; import android.support.v4.content.ContextCompat; import android.support.v7.view.ContextThemeWrapper; +import android.support.v7.widget.SearchView; import android.support.v7.widget.Toolbar; import android.util.TypedValue; import android.view.LayoutInflater; @@ -20,7 +21,6 @@ import android.widget.LinearLayout; import android.widget.ListView; import android.widget.RelativeLayout; import android.widget.RelativeLayout.LayoutParams; -import android.widget.SearchView; import net.osmand.Collator; import net.osmand.OsmAndCollator; @@ -77,7 +77,7 @@ public class SearchDialogFragment extends DialogFragment implements DownloadEven searchText = ""; Toolbar toolbar = (Toolbar) view.findViewById(R.id.toolbar); - toolbar.setNavigationIcon(getMyApplication().getIconsCache().getIcon(R.drawable.abc_ic_ab_back_mtrl_am_alpha)); + toolbar.setNavigationIcon(R.drawable.abc_ic_ab_back_mtrl_am_alpha); toolbar.setNavigationOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) {