aboutsummaryrefslogtreecommitdiff
path: root/subsonic-android/src/github/daneren2005
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2012-09-13 20:11:27 -0700
committerScott Jackson <daneren2005@gmail.com>2012-09-13 20:11:27 -0700
commit647f6b31c54ce1678d031ffbf50e61e35e399028 (patch)
tree4045f01594615b1bdbdf0cd91e2f7b8ad8babbc6 /subsonic-android/src/github/daneren2005
parent2b93e03190fa73f6c66c3f7121ab8c942b6133e5 (diff)
downloaddsub-647f6b31c54ce1678d031ffbf50e61e35e399028.tar.gz
dsub-647f6b31c54ce1678d031ffbf50e61e35e399028.tar.bz2
dsub-647f6b31c54ce1678d031ffbf50e61e35e399028.zip
Fixed songs context menus under download tab
Diffstat (limited to 'subsonic-android/src/github/daneren2005')
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/activity/DownloadActivity.java11
1 files changed, 5 insertions, 6 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/activity/DownloadActivity.java b/subsonic-android/src/github/daneren2005/dsub/activity/DownloadActivity.java
index 40145fb4..2f20c20e 100644
--- a/subsonic-android/src/github/daneren2005/dsub/activity/DownloadActivity.java
+++ b/subsonic-android/src/github/daneren2005/dsub/activity/DownloadActivity.java
@@ -55,7 +55,6 @@ import android.widget.LinearLayout;
import android.widget.ListView;
import android.widget.TextView;
import android.widget.ViewFlipper;
-import com.actionbarsherlock.app.SherlockActivity;
import com.actionbarsherlock.view.Menu;
import com.actionbarsherlock.view.MenuItem;
import com.actionbarsherlock.view.MenuInflater;
@@ -510,14 +509,14 @@ public class DownloadActivity extends SubsonicTabActivity implements OnGestureLi
return super.onPrepareOptionsMenu(menu);
}
- /*@Override
- public void onCreateContextMenu(ContextMenu menu, View view, ContextMenu.ContextMenuInfo menuInfo) {
+ @Override
+ public void onCreateContextMenu(android.view.ContextMenu menu, View view, ContextMenu.ContextMenuInfo menuInfo) {
super.onCreateContextMenu(menu, view, menuInfo);
if (view == playlistView) {
AdapterView.AdapterContextMenuInfo info = (AdapterView.AdapterContextMenuInfo) menuInfo;
DownloadFile downloadFile = (DownloadFile) playlistView.getItemAtPosition(info.position);
- MenuInflater inflater = getSupportMenuInflater();
+ android.view.MenuInflater inflater = getMenuInflater();
inflater.inflate(R.menu.nowplaying_context, menu);
if (downloadFile.getSong().getParent() == null) {
@@ -531,11 +530,11 @@ public class DownloadActivity extends SubsonicTabActivity implements OnGestureLi
}
@Override
- public boolean onContextItemSelected(MenuItem menuItem) {
+ public boolean onContextItemSelected(android.view.MenuItem menuItem) {
AdapterView.AdapterContextMenuInfo info = (AdapterView.AdapterContextMenuInfo) menuItem.getMenuInfo();
DownloadFile downloadFile = (DownloadFile) playlistView.getItemAtPosition(info.position);
return menuItemSelected(menuItem.getItemId(), downloadFile) || super.onContextItemSelected(menuItem);
- }*/
+ }
@Override
public boolean onOptionsItemSelected(MenuItem menuItem) {