Mobile data should be non-indexable when the subscription id is invalid.

Return AVAILABLE_UNSEARCHABLE when the subscription id is invalid.

Fixes: 141289758
Test: manual and robotests
Change-Id: I86534182fca26bf7b56ee1ee7d6f573a142a6a3a
This commit is contained in:
Stanley Wang
2019-09-20 10:23:00 +08:00
parent 03d6dad7d4
commit 19afdba261
2 changed files with 4 additions and 4 deletions

View File

@@ -65,7 +65,7 @@ public class MobileDataPreferenceController extends TelephonyTogglePreferenceCon
public int getAvailabilityStatus(int subId) {
return subId != SubscriptionManager.INVALID_SUBSCRIPTION_ID
? AVAILABLE
: DISABLED_DEPENDENT_SETTING;
: AVAILABLE_UNSEARCHABLE;
}
@Override