Stop depending on empty Settings

Bug: 172839327
Bug: 172839851
Test: CTS verifier
Change-Id: I610485570ebc19ca4d1b2a040ed606f607de0cf1
This commit is contained in:
Julia Reynolds
2020-11-19 11:00:27 -05:00
parent f06975c784
commit 14c42a7a74
5 changed files with 21 additions and 12 deletions

View File

@@ -73,7 +73,7 @@ public class ZenAccessSettingObserverMixinTest {
mLifecycle.handleLifecycleEvent(ON_START);
mContext.getContentResolver().notifyChange(Settings.Secure.getUriFor(
Settings.Secure.ENABLED_NOTIFICATION_POLICY_ACCESS_PACKAGES), null);
Settings.Secure.ENABLED_NOTIFICATION_LISTENERS), null);
verify(mListener).onZenAccessPolicyChanged();
}
@@ -84,7 +84,7 @@ public class ZenAccessSettingObserverMixinTest {
mLifecycle.handleLifecycleEvent(ON_STOP);
mContext.getContentResolver().notifyChange(Settings.Secure.getUriFor(
Settings.Secure.ENABLED_NOTIFICATION_POLICY_ACCESS_PACKAGES), null);
Settings.Secure.ENABLED_NOTIFICATION_LISTENERS), null);
verify(mListener, never()).onZenAccessPolicyChanged();
}