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

Commit 5de2f89c authored by Ling Ma's avatar Ling Ma
Browse files

[log] debug getDataNetworkType

Fix: 400506639
Test: basic voice call
Flag: EXEMPT log only
Change-Id: I40d40c4904770c9ad8bb8f49d33163a48501f9e3
parent 6fa5bdd1
Loading
Loading
Loading
Loading
+5 −6
Original line number Diff line number Diff line
@@ -3374,14 +3374,13 @@ public class TelephonyManager {
                return telephony.getDataNetworkTypeForSubscriber(subId, getOpPackageName(),
                        getAttributionTag());
            } else {
                // This can happen when the ITelephony interface is not up yet.
                Log.e(TAG, "getDataNetworkType: ITelephony interface is not up yet");
                return NETWORK_TYPE_UNKNOWN;
            }
        } catch(RemoteException ex) {
            // This shouldn't happen in the normal case
            return NETWORK_TYPE_UNKNOWN;
        } catch (NullPointerException ex) {
            // This could happen before phone restarts due to crashing
        } catch (RemoteException // Shouldn't happen in the normal case
                | NullPointerException ex // Could happen before phone restarts due to crashing
        ) {
            Log.e(TAG, "getDataNetworkType: " + ex.getMessage());
            return NETWORK_TYPE_UNKNOWN;
        }
    }