Skip to content

Commit

Permalink
Import fix for issue Arcus92#7 Arcus92#7
Browse files Browse the repository at this point in the history
  • Loading branch information
Markus Meier committed Nov 6, 2016
1 parent 20a5a18 commit e8e46ab
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 2 deletions.
Binary file modified playmusicexporter/.DS_Store
Binary file not shown.
Binary file modified playmusicexporter/src/.DS_Store
Binary file not shown.
Binary file modified playmusicexporter/src/main/.DS_Store
Binary file not shown.
Binary file modified playmusicexporter/src/main/java/.DS_Store
Binary file not shown.
Binary file modified playmusicexporter/src/main/java/de/.DS_Store
Binary file not shown.
Binary file modified playmusicexporter/src/main/java/de/arcus/.DS_Store
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
Expand Down Expand Up @@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -144,4 +155,4 @@ public void onDestroyActionMode(ActionMode mode) {
updateViews();
}
}
}
}

0 comments on commit e8e46ab

Please sign in to comment.