Android: Refresh game library when resuming (Tv)MainActivity

This commit is contained in:
Ryan Meredith 2020-06-02 16:45:23 -04:00
parent b3c705fa96
commit 9ee0740c2d
3 changed files with 2 additions and 1 deletions

View File

@ -86,6 +86,7 @@ public final class MainActivity extends AppCompatActivity implements MainView
{
super.onResume();
mPresenter.addDirIfNeeded(this);
GameFileCacheService.startRescan(this);
}
@Override

View File

@ -112,7 +112,6 @@ public final class MainPresenter
{
GameFileCache.addGameFolder(mDirToAdd, context);
mDirToAdd = null;
GameFileCacheService.startRescan(context);
}
}

View File

@ -65,6 +65,7 @@ public final class TvMainActivity extends FragmentActivity implements MainView
{
super.onResume();
mPresenter.addDirIfNeeded(this);
GameFileCacheService.startRescan(this);
}
@Override