Fix deprecation warning

This commit is contained in:
Anderson Mesquita 2019-07-22 18:45:11 -04:00
parent fd0cac5957
commit ba4a7dd865
1 changed files with 1 additions and 2 deletions

View File

@ -1,6 +1,5 @@
package de.danoeh.antennapod.core.menuhandler;
import android.support.v4.view.MenuItemCompat;
import android.view.Menu;
import android.view.MenuItem;
@ -25,7 +24,7 @@ public class MenuItemUtils {
// expand actionview if feeds are being downloaded, collapse otherwise
if (checker.isRefreshing()) {
MenuItem refreshItem = menu.findItem(resId);
MenuItemCompat.setActionView(refreshItem, R.layout.refresh_action_view);
refreshItem.setActionView(R.layout.refresh_action_view);
return true;
} else {
return false;