summaryrefslogtreecommitdiff
path: root/Source/Android/app/src/main/java
diff options
context:
space:
mode:
authorAnthony <Helios747@users.noreply.github.com>2018-06-01 09:53:19 -0700
committerGitHub <noreply@github.com>2018-06-01 09:53:19 -0700
commitfcae27981acce6f1ccbc0cfa5163416385830c5e (patch)
treedafdf134a3abdca36bd4a0725195361cf9b7fb22 /Source/Android/app/src/main/java
parenta9684b5c678ce8cc42841a8ad1127420d88c433f (diff)
parent1b127bdf33845a1f82479180b497fb7cf5baa4c7 (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.java15
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();
+ }
}
}