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

Commit 4ec1828a authored by Malcolm Chen's avatar Malcolm Chen Committed by Xiangyu/Malcolm Chen
Browse files

Do not set a sub as default data sub unless it's active.

Bug: 146446143
Test: unittest & manually reproduced the failure and verified
the fix
Change-Id: I7ed35dc019c8bda27efba34ede549df2eec62e3c
Merged-In: I7ed35dc019c8bda27efba34ede549df2eec62e3c
parent be8186cc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -283,7 +283,7 @@ public class MultiSimSettingController extends Handler {

        // If user is enabling a non-default non-opportunistic subscription, make it default.
        if (mSubController.getDefaultDataSubId() != subId && !mSubController.isOpportunistic(subId)
                && enable) {
                && enable && mSubController.isActiveSubId(subId)) {
            mSubController.setDefaultDataSubId(subId);
        }
    }