More tests for silent status bar setting
Test: this Change-Id: I2f1890a4843438684c089b837cf74bd520b352e6 Fixes: 123419917
This commit is contained in:
@@ -24,17 +24,24 @@ import android.provider.Settings;
|
||||
|
||||
import com.android.settings.core.TogglePreferenceController;
|
||||
|
||||
import com.google.common.annotations.VisibleForTesting;
|
||||
|
||||
public class SilentStatusBarPreferenceController extends TogglePreferenceController {
|
||||
|
||||
private static final String KEY = "hide_silent_icons";
|
||||
private static final int MY_USER_ID = UserHandle.myUserId();
|
||||
private final NotificationBackend mBackend;
|
||||
private NotificationBackend mBackend;
|
||||
|
||||
public SilentStatusBarPreferenceController(Context context) {
|
||||
super(context, KEY);
|
||||
mBackend = new NotificationBackend();
|
||||
}
|
||||
|
||||
@VisibleForTesting
|
||||
void setBackend(NotificationBackend backend) {
|
||||
mBackend = backend;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isChecked() {
|
||||
return mBackend.shouldHideSilentStatusBarIcons(mContext);
|
||||
|
Reference in New Issue
Block a user