Commit 4ed4a071 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Remove useless calls to onPrepareOptionsMenu

parent 09323729
......@@ -288,7 +288,6 @@ public class AudioAlbumsSongsFragment extends BaseAudioBrowser implements SwipeR
@Override
public void onUpdateFinished(RecyclerView.Adapter adapter) {
super.onUpdateFinished(adapter);
mFastScroller.setRecyclerView(getCurrentRV());
mSwipeRefreshLayout.setRefreshing(false);
if (mAlbumsAdapter.isEmpty()) mViewPager.setCurrentItem(1);
......
......@@ -492,7 +492,6 @@ public class AudioBrowserFragment extends BaseAudioBrowser implements SwipeRefre
@Override
public void onUpdateFinished(RecyclerView.Adapter adapter) {
super.onUpdateFinished(adapter);
if (adapter == getCurrentAdapter()) {
if (!mMediaLibrary.isWorking())
mHandler.sendEmptyMessage(UNSET_REFRESHING);
......
......@@ -24,7 +24,6 @@
package org.videolan.vlc.gui.audio;
import android.support.v7.view.ActionMode;
import android.support.v7.widget.RecyclerView;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
......@@ -176,9 +175,4 @@ public abstract class BaseAudioBrowser extends MediaBrowserFragment<AudioModel>
@Override
public void onCtxClick(View anchor, final int position, final MediaLibraryItem mediaItem) {}
@Override
public void onUpdateFinished(RecyclerView.Adapter adapter) {
if (adapter == getCurrentAdapter()) onPrepareOptionsMenu(getMenu());
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment