Skip to content

Commit

Permalink
fixed disabler for playlist catalog
Browse files Browse the repository at this point in the history
  • Loading branch information
gdlbo committed Mar 29, 2024
1 parent e049b5f commit 84ad75e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public static JSONObject music(JSONObject json) throws JSONException {
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);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,13 +221,13 @@ public View getView(int position, View convertView, ViewGroup parent) {

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));
Expand Down Expand Up @@ -348,7 +348,7 @@ public View getView(int position, View convertView, ViewGroup parent) {
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));
Expand Down

0 comments on commit 84ad75e

Please sign in to comment.