Merge "[Settings] configuration for hidding SIM related UI"

This commit is contained in:
Bonian Chen
2022-11-22 08:51:53 +00:00
committed by Gerrit Code Review
9 changed files with 74 additions and 2 deletions

View File

@@ -86,6 +86,14 @@ public class SubscriptionUtil {
return subscriptions;
}
/**
* Check if SIM hardware is visible to the end user.
*/
public static boolean isSimHardwareVisible(Context context) {
return context.getResources()
.getBoolean(R.bool.config_show_sim_info);
}
@VisibleForTesting
static boolean isInactiveInsertedPSim(UiccSlotInfo slotInfo) {
if (slotInfo == null) {