Merge pull request #8844 from Ebola16/RGL

Android: Refresh game library when resuming (Tv)MainActivity
This commit is contained in:
JosJuice 2020-06-16 18:08:48 +02:00 committed by GitHub
commit 851b438419
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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