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

Commit 9cfff6c9 authored by Malcolm Chen's avatar Malcolm Chen Committed by Xiangyu/Malcolm Chen
Browse files

Add @NonNull in SubMgr#getOpportunisticSubscriptions return value.

Bug: 116117273
Test: build
Change-Id: I1b831ea7fc1eff78c262ae6f3b6ee91a72e1f5a9
Merged-In: I1b831ea7fc1eff78c262ae6f3b6ee91a72e1f5a9
parent 6730f345
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -2230,9 +2230,10 @@ public class SubscriptionManager {
     *  Provide all available user downloaded profiles on phone which are used only for
     *  Provide all available user downloaded profiles on phone which are used only for
     *  opportunistic data.
     *  opportunistic data.
     *  @param slotIndex slot on which the profiles are queried from.
     *  @param slotIndex slot on which the profiles are queried from.
     *  @return the list of opportunistic subscription info. If none exists, an empty list.
     */
     */
    @RequiresPermission(android.Manifest.permission.READ_PHONE_STATE)
    @RequiresPermission(android.Manifest.permission.READ_PHONE_STATE)
    public List<SubscriptionInfo> getOpportunisticSubscriptions(int slotIndex) {
    public @NonNull List<SubscriptionInfo> getOpportunisticSubscriptions(int slotIndex) {
        String pkgForDebug = mContext != null ? mContext.getOpPackageName() : "<unknown>";
        String pkgForDebug = mContext != null ? mContext.getOpPackageName() : "<unknown>";
        List<SubscriptionInfo> subInfoList = null;
        List<SubscriptionInfo> subInfoList = null;