[TNU02] Update tethering notification by active data subid
Tethering notification can be customized by different subid. Thus update notification when active data subid changed. Bug: 122085773 Bug: 130596698 Test: atest TetheringTests Change-Id: I799d713326cfbf4dc96c712c6b15ed5a4ac18dd2 Merged-In: I799d713326cfbf4dc96c712c6b15ed5a4ac18dd2 (cherry picked from aosp/1209984)
This commit is contained in:
@@ -210,7 +210,6 @@ public class TetheringTest {
|
||||
private PhoneStateListener mPhoneStateListener;
|
||||
private InterfaceConfigurationParcel mInterfaceConfiguration;
|
||||
|
||||
|
||||
private class TestContext extends BroadcastInterceptingContext {
|
||||
TestContext(Context base) {
|
||||
super(base);
|
||||
@@ -1399,6 +1398,7 @@ public class TetheringTest {
|
||||
mPhoneStateListener.onActiveDataSubscriptionIdChanged(fakeSubId);
|
||||
final TetheringConfiguration newConfig = mTethering.getTetheringConfiguration();
|
||||
assertEquals(fakeSubId, newConfig.activeDataSubId);
|
||||
verify(mNotificationUpdater, times(1)).onActiveDataSubscriptionIdChanged(eq(fakeSubId));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user