fixed disabler for playlist catalog

This commit is contained in:
gdlbo
2024-03-29 13:45:28 +03:00
parent e049b5f989
commit 84ad75e948
2 changed files with 4 additions and 4 deletions
@@ -48,7 +48,7 @@ public class CatalogJsonInjector {
fetchCatalogId("https://vk.com/audio?section=albums", oldItems);
}
if (Preferences.sendMusicMetrics() && Preferences.getBoolValue("playStatsCatalog", false)) {
if (Preferences.sendMusicMetrics() && Preferences.getBoolValue("playStatCatalog", false)) {
fetchCatalogId("https://vk.com/audio?section=recent", oldItems);
}
@@ -221,13 +221,13 @@ public class MusicFragment extends TrackedMaterialPreferenceToolbarFragment {
PreferenceFragmentUtils.addMaterialSwitchPreference(
getPreferenceScreen(),
"playStatsCatalog",
"playStatCatalog",
"Список истории прослушиваний",
"Показывать вкладку истории прослушиваний в музыкальном разделе\n\nОтключение ускорит открытие музыкального раздела при медленном интернете",
null,
false,
(preference, o) -> {
Preferences.getPreferences().edit().putBoolean("playStatsCatalog", (boolean) o).apply();
Preferences.getPreferences().edit().putBoolean("playStatCatalog", (boolean) o).apply();
return true;
}
).setVisible(Preferences.sendMusicMetrics() && !getBoolValue("useOldAppVer", false));
@@ -348,7 +348,7 @@ public class MusicFragment extends TrackedMaterialPreferenceToolbarFragment {
null,
true,
(preference, o) -> {
Preferences.getPreferences().edit().putBoolean("playStatsCatalog", (boolean) o).apply();
Preferences.getPreferences().edit().putBoolean("playlistsCatalogs", (boolean) o).apply();
return true;
}
).setVisible(!getBoolValue("useOldAppVer", false));