Merge "Remove usage of TelecomManager.from() hidden API" am: 07235288eb
am: 55e2207408
Change-Id: Ic49428aa0012cbaae293aea7bbcaafb42459e2f8
This commit is contained in:
committed by
android-build-merger
commit
12bfd3082e
@@ -8833,7 +8833,10 @@ public class TelephonyManager {
|
|||||||
@Deprecated
|
@Deprecated
|
||||||
public boolean isTtyModeSupported() {
|
public boolean isTtyModeSupported() {
|
||||||
try {
|
try {
|
||||||
TelecomManager telecomManager = TelecomManager.from(mContext);
|
TelecomManager telecomManager = null;
|
||||||
|
if (mContext != null) {
|
||||||
|
telecomManager = mContext.getSystemService(TelecomManager.class);
|
||||||
|
}
|
||||||
if (telecomManager != null) {
|
if (telecomManager != null) {
|
||||||
return telecomManager.isTtySupported();
|
return telecomManager.isTtySupported();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user