Settings: Do not hide Now Playing for Pixel devices

This commit is contained in:
Joey Huab
2025-01-27 05:01:30 +09:00
committed by Joey
parent 184131faec
commit b54aa2f650
2 changed files with 10 additions and 2 deletions

View File

@@ -54,6 +54,8 @@ import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;
import java.util.List; import java.util.List;
import org.evolution.settings.utils.DeviceUtils;
@SearchIndexable @SearchIndexable
public class SoundSettings extends DashboardFragment implements OnActivityResultListener { public class SoundSettings extends DashboardFragment implements OnActivityResultListener {
private static final String TAG = "SoundSettings"; private static final String TAG = "SoundSettings";
@@ -122,7 +124,9 @@ public class SoundSettings extends DashboardFragment implements OnActivityResult
} }
return null; return null;
}); });
updateAmbientMusicPref(); if (!DeviceUtils.isCurrentlySupportedPixel()) {
updateAmbientMusicPref();
}
} }
private void updateAmbientMusicPref() { private void updateAmbientMusicPref() {

View File

@@ -51,6 +51,8 @@ import com.android.settingslib.search.SearchIndexable;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import org.evolution.settings.utils.DeviceUtils;
/** /**
* Settings screen for lock screen preference * Settings screen for lock screen preference
*/ */
@@ -96,7 +98,9 @@ public class LockscreenDashboardFragment extends DashboardFragment
R.string.locked_work_profile_notification_title); R.string.locked_work_profile_notification_title);
replaceEnterpriseStringTitle("security_setting_lock_screen_notif_work_header", replaceEnterpriseStringTitle("security_setting_lock_screen_notif_work_header",
WORK_PROFILE_NOTIFICATIONS_SECTION_HEADER, R.string.profile_section_header); WORK_PROFILE_NOTIFICATIONS_SECTION_HEADER, R.string.profile_section_header);
updateAmbientMusicPref(); if (!DeviceUtils.isCurrentlySupportedPixel()) {
updateAmbientMusicPref();
}
} }
private void updateAmbientMusicPref() { private void updateAmbientMusicPref() {