Update the summary for DND conditional
Since original string is too long for DND conditional subtext, separate DND conditional to two different states, one is for "Phone muted" state, the othe is for "With exceptions" state. Also, clean up the strings of other product variants for the conditional. Bug: 122929205 Test: visual Change-Id: Icb156ff9a4858a26355d92e6d4fb82ad1927b278
This commit is contained in:
@@ -18,6 +18,7 @@ package com.android.settings.testutils.shadow;
|
||||
|
||||
import android.app.NotificationManager;
|
||||
import android.net.Uri;
|
||||
import android.service.notification.ZenModeConfig;
|
||||
|
||||
import org.robolectric.annotation.Implementation;
|
||||
import org.robolectric.annotation.Implements;
|
||||
@@ -26,6 +27,7 @@ import org.robolectric.annotation.Implements;
|
||||
public class ShadowNotificationManager {
|
||||
|
||||
private int mZenMode;
|
||||
private ZenModeConfig mZenModeConfig;
|
||||
|
||||
@Implementation
|
||||
protected void setZenMode(int mode, Uri conditionId, String reason) {
|
||||
@@ -36,4 +38,13 @@ public class ShadowNotificationManager {
|
||||
protected int getZenMode() {
|
||||
return mZenMode;
|
||||
}
|
||||
|
||||
@Implementation
|
||||
public ZenModeConfig getZenModeConfig() {
|
||||
return mZenModeConfig;
|
||||
}
|
||||
|
||||
public void setZenModeConfig(ZenModeConfig config) {
|
||||
mZenModeConfig = config;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user