diff options
| author | Anthony <Helios747@users.noreply.github.com> | 2018-06-01 09:53:19 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-06-01 09:53:19 -0700 |
| commit | fcae27981acce6f1ccbc0cfa5163416385830c5e (patch) | |
| tree | dafdf134a3abdca36bd4a0725195361cf9b7fb22 /Source/Android/app/src/main/java | |
| parent | a9684b5c678ce8cc42841a8ad1127420d88c433f (diff) | |
| parent | 1b127bdf33845a1f82479180b497fb7cf5baa4c7 (diff) | |
Merge pull request #7044 from JosJuice/android-refresh-all-fragments
Android: Refresh all fragments, not just the selected one
Diffstat (limited to 'Source/Android/app/src/main/java')
| -rw-r--r-- | Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/ui/main/MainActivity.java | 15 |
1 files changed, 8 insertions, 7 deletions
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 848ab7dc95..97ad22bd7a 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 @@ -110,7 +110,7 @@ public final class MainActivity extends AppCompatActivity implements MainView public void refresh() { getContentResolver().insert(GameProvider.URI_REFRESH, null); - refreshFragment(); + refreshAllFragments(); } @Override @@ -203,14 +203,15 @@ public final class MainActivity extends AppCompatActivity implements MainView return mPresenter.handleOptionSelection(item.getItemId()); } - private void refreshFragment() + private void refreshAllFragments() { - - Platform platform = Platform.fromPosition(mViewPager.getCurrentItem()); - PlatformGamesView fragment = getPlatformGamesView(platform); - if (fragment != null) + for (Platform platform : Platform.values()) { - fragment.refresh(); + PlatformGamesView fragment = getPlatformGamesView(platform); + if (fragment != null) + { + fragment.refresh(); + } } } |
