Fix deprecation warning
This commit is contained in:
parent
fd0cac5957
commit
ba4a7dd865
|
@ -1,6 +1,5 @@
|
||||||
package de.danoeh.antennapod.core.menuhandler;
|
package de.danoeh.antennapod.core.menuhandler;
|
||||||
|
|
||||||
import android.support.v4.view.MenuItemCompat;
|
|
||||||
import android.view.Menu;
|
import android.view.Menu;
|
||||||
import android.view.MenuItem;
|
import android.view.MenuItem;
|
||||||
|
|
||||||
|
@ -25,7 +24,7 @@ public class MenuItemUtils {
|
||||||
// expand actionview if feeds are being downloaded, collapse otherwise
|
// expand actionview if feeds are being downloaded, collapse otherwise
|
||||||
if (checker.isRefreshing()) {
|
if (checker.isRefreshing()) {
|
||||||
MenuItem refreshItem = menu.findItem(resId);
|
MenuItem refreshItem = menu.findItem(resId);
|
||||||
MenuItemCompat.setActionView(refreshItem, R.layout.refresh_action_view);
|
refreshItem.setActionView(R.layout.refresh_action_view);
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue