Settings: Do not hide Now Playing for Pixel devices
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user