diff --git a/playmusicexporter/.DS_Store b/playmusicexporter/.DS_Store index ec715c8..c5b529f 100644 Binary files a/playmusicexporter/.DS_Store and b/playmusicexporter/.DS_Store differ diff --git a/playmusicexporter/src/.DS_Store b/playmusicexporter/src/.DS_Store index 64a15a6..73c85ac 100644 Binary files a/playmusicexporter/src/.DS_Store and b/playmusicexporter/src/.DS_Store differ diff --git a/playmusicexporter/src/main/.DS_Store b/playmusicexporter/src/main/.DS_Store index 13dbf3d..f6abffe 100644 Binary files a/playmusicexporter/src/main/.DS_Store and b/playmusicexporter/src/main/.DS_Store differ diff --git a/playmusicexporter/src/main/java/.DS_Store b/playmusicexporter/src/main/java/.DS_Store index 34ad79d..89c5af2 100644 Binary files a/playmusicexporter/src/main/java/.DS_Store and b/playmusicexporter/src/main/java/.DS_Store differ diff --git a/playmusicexporter/src/main/java/de/.DS_Store b/playmusicexporter/src/main/java/de/.DS_Store index 9a2ed9c..25dbeb3 100644 Binary files a/playmusicexporter/src/main/java/de/.DS_Store and b/playmusicexporter/src/main/java/de/.DS_Store differ diff --git a/playmusicexporter/src/main/java/de/arcus/.DS_Store b/playmusicexporter/src/main/java/de/arcus/.DS_Store index 2f0794c..5a8e081 100644 Binary files a/playmusicexporter/src/main/java/de/arcus/.DS_Store and b/playmusicexporter/src/main/java/de/arcus/.DS_Store differ diff --git a/playmusicexporter/src/main/java/de/arcus/playmusicexporter2/.DS_Store b/playmusicexporter/src/main/java/de/arcus/playmusicexporter2/.DS_Store index 11ea9f3..537d863 100644 Binary files a/playmusicexporter/src/main/java/de/arcus/playmusicexporter2/.DS_Store and b/playmusicexporter/src/main/java/de/arcus/playmusicexporter2/.DS_Store differ diff --git a/playmusicexporter/src/main/java/de/arcus/playmusicexporter2/actionmode/ActionModeTitle.java b/playmusicexporter/src/main/java/de/arcus/playmusicexporter2/actionmode/ActionModeTitle.java index fb8b428..f8b3399 100755 --- a/playmusicexporter/src/main/java/de/arcus/playmusicexporter2/actionmode/ActionModeTitle.java +++ b/playmusicexporter/src/main/java/de/arcus/playmusicexporter2/actionmode/ActionModeTitle.java @@ -29,8 +29,9 @@ import android.view.MenuItem; import de.arcus.playmusicexporter2.R; -import de.arcus.playmusicexporter2.activities.MusicTrackListActivity; import de.arcus.playmusicexporter2.activities.MusicContainerListActivity; +import de.arcus.playmusicexporter2.activities.MusicTrackListActivity; +import de.arcus.playmusicexporter2.fragments.MusicTrackListFragment; import de.arcus.playmusicexporter2.items.SelectedTrackList; /** @@ -88,6 +89,11 @@ public boolean onActionItemClicked(ActionMode mode, MenuItem item) { MusicTrackListActivity trackDetailActivity = (MusicTrackListActivity)mSelectionList.getActivity(); trackDetailActivity.selectAll(); + } else if (mSelectionList.getActivity() instanceof MusicContainerListActivity) { + MusicContainerListActivity trackDetailContainerActivity = (MusicContainerListActivity)mSelectionList.getActivity(); + MusicTrackListFragment trackDetailFragment = (MusicTrackListFragment) trackDetailContainerActivity.getSupportFragmentManager() + .findFragmentById(R.id.track_detail_container); + trackDetailFragment.selectAll(); } return true; @@ -97,6 +103,11 @@ public boolean onActionItemClicked(ActionMode mode, MenuItem item) { MusicTrackListActivity trackDetailActivity = (MusicTrackListActivity)mSelectionList.getActivity(); trackDetailActivity.deselectAll(); + } else if (mSelectionList.getActivity() instanceof MusicContainerListActivity) { + MusicContainerListActivity trackDetailContainerActivity = (MusicContainerListActivity)mSelectionList.getActivity(); + MusicTrackListFragment trackDetailFragment = (MusicTrackListFragment) trackDetailContainerActivity.getSupportFragmentManager() + .findFragmentById(R.id.track_detail_container); + trackDetailFragment.deselectAll(); } return true; @@ -144,4 +155,4 @@ public void onDestroyActionMode(ActionMode mode) { updateViews(); } } -} +} \ No newline at end of file