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.List;
import org.evolution.settings.utils.DeviceUtils;
@SearchIndexable
public class SoundSettings extends DashboardFragment implements OnActivityResultListener {
private static final String TAG = "SoundSettings";
@@ -122,8 +124,10 @@ public class SoundSettings extends DashboardFragment implements OnActivityResult
}
return null;
});
if (!DeviceUtils.isCurrentlySupportedPixel()) {
updateAmbientMusicPref();
}
}
private void updateAmbientMusicPref() {
final PreferenceScreen screen = getPreferenceScreen();

View File

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