Remove unnecessary method

This commit is contained in:
Andrew Rabert 2018-04-24 00:07:09 -04:00
parent 7d1e55321a
commit 72424659ab
2 changed files with 0 additions and 5 deletions

View File

@ -408,7 +408,6 @@ public class SubsonicActivity extends AppCompatActivity implements OnItemSelecte
if (currentFragment != null) {
try {
SubsonicFragment fragment = getCurrentFragment();
fragment.setContext(this);
fragment.onCreateOptionsMenu(menu, menuInflater);
if (isTouchscreen()) {

View File

@ -149,10 +149,6 @@ public class SubsonicFragment extends Fragment implements SwipeRefreshLayout.OnR
this.context = (SubsonicActivity) getActivity();
}
public void setContext(SubsonicActivity context) {
this.context = context;
}
void onFinishSetupOptionsMenu(final Menu menu) {
searchItem = menu.findItem(R.id.menu_global_search);
if (searchItem != null) {