Ring & notif vol missing on a largescreen device
Before: "Ring & notification volume" showed up in volume panel and in volume settings. Now (what prompted this bugreport): A device config was changed to mark it not voice capable. "Ring & notification volume" disappeared from both places; "Notification volume" showed up only in volume settings, not panel. Fix: the voice capable should not be a factor when determining availability for ring/notification slices. After this fix is applied: "Ring & notification volume" to reappear at both settings and panel. Bug: 256548882 Test: make DEBUG_ROBOLECTRIC=1 ROBOTEST_FILTER="VolumePanelTest|RingVolumePreferenceControllerTest|NotificationVolumePreferenceControllerTest|SeparateRingVolumePreferenceController" RunSettingsRoboTests -j40 Change-Id: Ie2b1913bde6a64303c4d9fde3724889f949c363b
This commit is contained in:
@@ -33,7 +33,6 @@ import androidx.lifecycle.OnLifecycleEvent;
|
||||
|
||||
import com.android.internal.config.sysui.SystemUiDeviceConfigFlags;
|
||||
import com.android.settings.R;
|
||||
import com.android.settings.Utils;
|
||||
import com.android.settingslib.core.lifecycle.Lifecycle;
|
||||
|
||||
import java.util.Set;
|
||||
@@ -111,8 +110,7 @@ public class SeparateRingVolumePreferenceController extends
|
||||
@Override
|
||||
public int getAvailabilityStatus() {
|
||||
boolean separateNotification = isSeparateNotificationConfigEnabled();
|
||||
|
||||
return separateNotification && Utils.isVoiceCapable(mContext) && !mHelper.isSingleVolume()
|
||||
return separateNotification && !mHelper.isSingleVolume()
|
||||
? AVAILABLE : UNSUPPORTED_ON_DEVICE;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user