Revert "[Settings] Support getSystemService(Class<T>)"
This reverts commit d5ccde31a8.
Reason for revert: failure on test cases
Change-Id: I0a179a6ebb5ef1dec566ce6e8facd5f3b82d7c8a
This commit is contained in:
@@ -43,7 +43,7 @@ public final class EthernetTetherPreferenceController extends TetherBasePreferen
|
||||
super(context, preferenceKey);
|
||||
mEthernetRegex = context.getString(
|
||||
com.android.internal.R.string.config_ethernet_iface_regex);
|
||||
mEthernetManager = context.getSystemService(EthernetManager.class);
|
||||
mEthernetManager = (EthernetManager) context.getSystemService(Context.ETHERNET_SERVICE);
|
||||
}
|
||||
|
||||
@OnLifecycleEvent(Lifecycle.Event.ON_START)
|
||||
|
||||
Reference in New Issue
Block a user