mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-03-12 14:46:49 +01:00
Merge pull request #7044 from JosJuice/android-refresh-all-fragments
Android: Refresh all fragments, not just the selected one
This commit is contained in:
commit
fcae27981a
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user