From ca40d8a57b1c43c4ef4372b7bdac9d2e3987bc69 Mon Sep 17 00:00:00 2001 From: GaidamakUA Date: Wed, 18 Nov 2015 10:53:56 +0200 Subject: [PATCH] Tiny fix --- .../net/osmand/plus/activities/OsmandActionBarActivity.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/activities/OsmandActionBarActivity.java b/OsmAnd/src/net/osmand/plus/activities/OsmandActionBarActivity.java index 3e1047a173..0af852d4b5 100644 --- a/OsmAnd/src/net/osmand/plus/activities/OsmandActionBarActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/OsmandActionBarActivity.java @@ -2,6 +2,7 @@ package net.osmand.plus.activities; import android.graphics.PorterDuff; import android.graphics.drawable.Drawable; +import android.support.v4.content.ContextCompat; import android.support.v7.app.ActionBar; import android.support.v7.app.AppCompatActivity; import android.view.View; @@ -21,7 +22,7 @@ public class OsmandActionBarActivity extends AppCompatActivity { //should be called after set content view protected void setupHomeButton(){ Drawable back = ((OsmandApplication)getApplication()).getIconsCache().getIcon(R.drawable.abc_ic_ab_back_mtrl_am_alpha); - back.setColorFilter(getResources().getColor(R.color.color_white), PorterDuff.Mode.MULTIPLY); + back.setColorFilter(ContextCompat.getColor(this, R.color.color_white), PorterDuff.Mode.MULTIPLY); final ActionBar supportActionBar = getSupportActionBar(); if (supportActionBar != null) { supportActionBar.setHomeButtonEnabled(true);