Commit d60e5fa2 authored by Geoffrey Métais's avatar Geoffrey Métais

Systematic rescan, if enabled, on TV

parent f7a7b953
......@@ -115,8 +115,9 @@ public class MainTvActivity extends BaseTvActivity implements IVideoBrowser, OnI
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
if (mMediaLibrary.getMediaItems().isEmpty()) {
if (mSettings.getBoolean(PreferencesActivity.AUTO_RESCAN, true))
boolean rescan = mSettings.getBoolean(PreferencesActivity.AUTO_RESCAN, true);
if (rescan || mMediaLibrary.getMediaItems().isEmpty()) {
if (rescan)
mMediaLibrary.scanMediaItems(false);
else
mMediaLibrary.loadMediaItems();
......
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