diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-02-21 19:22:27 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-02-21 19:22:27 -0800 |
commit | f862a48ef1390deb70420334d02549bdb8f3ec4c (patch) | |
tree | 44fe858daa4c7053b0f8a3837515eb05d8bc684d | |
parent | d610d234f412173f81a6367c425d976e3a66f667 (diff) | |
download | dsub-f862a48ef1390deb70420334d02549bdb8f3ec4c.tar.gz dsub-f862a48ef1390deb70420334d02549bdb8f3ec4c.tar.bz2 dsub-f862a48ef1390deb70420334d02549bdb8f3ec4c.zip |
Fix 2.3 crash
-rw-r--r-- | src/github/daneren2005/dsub/fragments/DownloadFragment.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/fragments/DownloadFragment.java b/src/github/daneren2005/dsub/fragments/DownloadFragment.java index 0a146b33..87cffd03 100644 --- a/src/github/daneren2005/dsub/fragments/DownloadFragment.java +++ b/src/github/daneren2005/dsub/fragments/DownloadFragment.java @@ -13,6 +13,7 @@ import android.content.SharedPreferences; import android.graphics.Color;
import android.os.Bundle;
import android.os.Handler;
+import android.support.v4.view.MenuItemCompat;
import android.support.v7.app.MediaRouteButton;
import android.view.ContextMenu;
import android.view.Display;
@@ -505,7 +506,7 @@ public class DownloadFragment extends SubsonicFragment implements OnGestureListe if(downloadService != null) {
MenuItem mediaRouteItem = menu.findItem(R.id.menu_mediaroute);
if(mediaRouteItem != null) {
- MediaRouteButton mediaRouteButton = (MediaRouteButton) mediaRouteItem.getActionView();
+ MediaRouteButton mediaRouteButton = (MediaRouteButton) MenuItemCompat.getActionView(mediaRouteItem);
mediaRouteButton.setRouteSelector(downloadService.getRemoteSelector());
}
}
|