summaryrefslogtreecommitdiff
path: root/Source/Android/app/src/main/java
diff options
context:
space:
mode:
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();
+ }
}
}