From 9ee0740c2d712cf567c8ef7ab7ba90aafc0f0e64 Mon Sep 17 00:00:00 2001 From: Ryan Meredith Date: Tue, 2 Jun 2020 16:45:23 -0400 Subject: [PATCH] Android: Refresh game library when resuming (Tv)MainActivity --- .../java/org/dolphinemu/dolphinemu/ui/main/MainActivity.java | 1 + .../java/org/dolphinemu/dolphinemu/ui/main/MainPresenter.java | 1 - .../java/org/dolphinemu/dolphinemu/ui/main/TvMainActivity.java | 1 + 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/ui/main/MainActivity.java b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/ui/main/MainActivity.java index 641b9a975e..b23806dbf7 100644 --- a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/ui/main/MainActivity.java +++ b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/ui/main/MainActivity.java @@ -86,6 +86,7 @@ public final class MainActivity extends AppCompatActivity implements MainView { super.onResume(); mPresenter.addDirIfNeeded(this); + GameFileCacheService.startRescan(this); } @Override diff --git a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/ui/main/MainPresenter.java b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/ui/main/MainPresenter.java index b107f415d6..6cd3637f8f 100644 --- a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/ui/main/MainPresenter.java +++ b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/ui/main/MainPresenter.java @@ -112,7 +112,6 @@ public final class MainPresenter { GameFileCache.addGameFolder(mDirToAdd, context); mDirToAdd = null; - GameFileCacheService.startRescan(context); } } diff --git a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/ui/main/TvMainActivity.java b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/ui/main/TvMainActivity.java index 4e379bc883..68e4ddfb72 100644 --- a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/ui/main/TvMainActivity.java +++ b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/ui/main/TvMainActivity.java @@ -65,6 +65,7 @@ public final class TvMainActivity extends FragmentActivity implements MainView { super.onResume(); mPresenter.addDirIfNeeded(this); + GameFileCacheService.startRescan(this); } @Override