[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:
mahdihijazi 2018-01-03 13:40:22 +01:00
parent b921f6cdef
commit 42fa129552

View file

@ -198,7 +198,7 @@ public final class MainActivity extends AppCompatActivity implements MainView
@Nullable
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);
}