Skip to content
Snippets Groups Projects
Commit 1483eff0 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

History: refresh on start

parent 9db203fa
No related branches found
No related tags found
No related merge requests found
......@@ -20,14 +20,8 @@
package org.videolan.vlc.gui;
import android.annotation.TargetApi;
import androidx.lifecycle.Observer;
import androidx.lifecycle.ViewModelProviders;
import android.os.Build;
import android.os.Bundle;
import androidx.annotation.Nullable;
import androidx.appcompat.view.ActionMode;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuInflater;
......@@ -35,6 +29,13 @@ import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.Nullable;
import androidx.appcompat.view.ActionMode;
import androidx.lifecycle.Observer;
import androidx.lifecycle.ViewModelProviders;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import org.videolan.medialibrary.media.MediaLibraryItem;
import org.videolan.medialibrary.media.MediaWrapper;
import org.videolan.vlc.R;
......@@ -84,7 +85,8 @@ public class HistoryFragment extends MediaBrowserFragment<HistoryModel> implemen
}
@Override
protected void onRestart() {
public void onStart() {
super.onStart();
viewModel.refresh();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment