mirror of
https://gitea.mayex.net/mayekkuzu/Audinaut.git
synced 2025-02-09 08:57:44 +03:00
Remove unnecessary method
This commit is contained in:
parent
7d1e55321a
commit
72424659ab
@ -408,7 +408,6 @@ public class SubsonicActivity extends AppCompatActivity implements OnItemSelecte
|
|||||||
if (currentFragment != null) {
|
if (currentFragment != null) {
|
||||||
try {
|
try {
|
||||||
SubsonicFragment fragment = getCurrentFragment();
|
SubsonicFragment fragment = getCurrentFragment();
|
||||||
fragment.setContext(this);
|
|
||||||
fragment.onCreateOptionsMenu(menu, menuInflater);
|
fragment.onCreateOptionsMenu(menu, menuInflater);
|
||||||
|
|
||||||
if (isTouchscreen()) {
|
if (isTouchscreen()) {
|
||||||
|
@ -149,10 +149,6 @@ public class SubsonicFragment extends Fragment implements SwipeRefreshLayout.OnR
|
|||||||
this.context = (SubsonicActivity) getActivity();
|
this.context = (SubsonicActivity) getActivity();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setContext(SubsonicActivity context) {
|
|
||||||
this.context = context;
|
|
||||||
}
|
|
||||||
|
|
||||||
void onFinishSetupOptionsMenu(final Menu menu) {
|
void onFinishSetupOptionsMenu(final Menu menu) {
|
||||||
searchItem = menu.findItem(R.id.menu_global_search);
|
searchItem = menu.findItem(R.id.menu_global_search);
|
||||||
if (searchItem != null) {
|
if (searchItem != null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user