Skip to content

Commit

Permalink
Fix #532
Browse files Browse the repository at this point in the history
  • Loading branch information
itchix committed Mar 24, 2017
1 parent 757be40 commit 76bd60b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Binary file modified app/app-obf-release.apk
Binary file not shown.
Binary file modified app/app-off-release.apk
Binary file not shown.
4 changes: 2 additions & 2 deletions app/build.gradle
Expand Up @@ -8,8 +8,8 @@ android {
applicationId "openfoodfacts.github.scrachx.openfood"
minSdkVersion 16
targetSdkVersion 25
versionCode 35
versionName "0.7.2"
versionCode 36
versionName "0.7.3"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
}
Expand Down
Expand Up @@ -6,7 +6,7 @@
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.customtabs.CustomTabsIntent;
import android.support.graphics.drawable.VectorDrawableCompat;
import android.support.v4.content.ContextCompat;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
Expand Down Expand Up @@ -112,7 +112,7 @@ public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
levelItem.add(new NutrientLevelItem(getString(R.string.txtSalt), saltValue, saltLocalize, salt.getImageLevel()));
}

img.setImageDrawable(VectorDrawableCompat.create(context.getResources(), Utils.getImageGrade(product.getNutritionGradeFr()), null));
img.setImageDrawable(ContextCompat.getDrawable(context, Utils.getImageGrade(product.getNutritionGradeFr())));
img.setOnClickListener(view1 -> {
CustomTabsIntent customTabsIntent = CustomTabsHelper.getCustomTabsIntent(getContext(), customTabActivityHelper.getSession());

Expand Down

0 comments on commit 76bd60b

Please sign in to comment.