Merge "Replace the hidden API to public API or other alternatives" into sc-dev

This commit is contained in:
TreeHugger Robot
2021-04-14 17:47:41 +00:00
committed by Android (Google) Code Review
7 changed files with 50 additions and 41 deletions

View File

@@ -32,7 +32,6 @@ import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.database.ContentObserver;
import android.net.ConnectivityManager;
import android.net.TetheringManager;
import android.provider.Settings;
@@ -198,7 +197,7 @@ public class TetherPreferenceControllerTest {
ReflectionHelpers.setField(mController, "mContext", context);
mController.onResume();
context.sendBroadcast(new Intent(ConnectivityManager.ACTION_TETHER_STATE_CHANGED));
context.sendBroadcast(new Intent(TetheringManager.ACTION_TETHER_STATE_CHANGED));
verify(mController).updateSummary();
}