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

Skip to content
Commit 9ccc9144 authored by sangyun's avatar sangyun
Browse files

Throw RuntimeException when looper is not prepared for deprecated API

Modified to send RuntimeException if Looper is not prepared when
using deprecated addOnSubscriptionsChangedListener.

With the feature of the "Lazily init Handler in SubscriptionManager",
we expected to avoid using addOnSubscriptionsChangedListener, which
has been deprecated. However, if the Looper is not prepared while
using addOnSubscriptionsChangedListener, which was deprecated,
previously a RuntimeException would have been thrown, but currently
a NullpointerException will be caused. For backward compatibility,
Modified it to generate a RuntimeException.

Bug: 314924913
Test: manual test
Test: atest SubscriptionManagerTest
Change-Id: I32a117eaac557a901bd78584013c9d5e4b0c5b4d
parent 91e6c2c7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment