Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8aa54aa2 authored by Jayachandran C's avatar Jayachandran C
Browse files

Remove usage of TelecomManager.from() hidden API

Bug: 140908357
Test: Build
Change-Id: I6e230e42cbecd7d7e236e0a2bfe3ea6c3d4c54c3
parent 3c397a62
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -8806,7 +8806,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();
            }