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

Commit c02f4147 authored by Brad Ebinger's avatar Brad Ebinger
Browse files

Do not throw RemoteException for notifyUserActivity

PowerManager does not rely on TelephonyManager#notifyUserActivity
to complete successfully since it is a oneway notification. If it
fails, due to telephony not being alive, do not throw a
RemoteException.

Bug: 156203930
Test: manual
Change-Id: I4c788fef5a887c45dbc3a20b7c8af40beed8d00a
parent 5093c581
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -13098,7 +13098,9 @@ public class TelephonyManager {
                service.userActivity();
            }
        } catch (RemoteException e) {
            throw e.rethrowFromSystemServer();
            // one-way notification, if telephony is not available, it is okay to not throw
            // exception here.
            Log.w(TAG, "notifyUserActivity exception: " + e.getMessage());
        }
    }