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