mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 13:49:53 -06:00
[Android] Fix refreshing the games list after adding a directory
This was a regression from the time we introrduced the Platform enums.
This commit is contained in:
@ -198,7 +198,7 @@ public final class MainActivity extends AppCompatActivity implements MainView
|
|||||||
@Nullable
|
@Nullable
|
||||||
private PlatformGamesView getPlatformGamesView(Platform platform)
|
private PlatformGamesView getPlatformGamesView(Platform platform)
|
||||||
{
|
{
|
||||||
String fragmentTag = "android:switcher:" + mViewPager.getId() + ":" + platform;
|
String fragmentTag = "android:switcher:" + mViewPager.getId() + ":" + platform.toInt();
|
||||||
|
|
||||||
return (PlatformGamesView) getSupportFragmentManager().findFragmentByTag(fragmentTag);
|
return (PlatformGamesView) getSupportFragmentManager().findFragmentByTag(fragmentTag);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user