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

Commit 8ace4520 authored by Daisuke Miyakawa's avatar Daisuke Miyakawa Committed by Android Git Automerger
Browse files

am e8ad0868: Enable the app to hide SIM import

* commit 'e8ad0868':
  Enable the app to hide SIM import
parents b836c6ad e8ad0868
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -124,4 +124,10 @@
    <!-- Regular expression for prohibiting certain phone numbers in dialpad.
         Ignored if empty. -->
    <string name="config_prohibited_phone_number_regexp"></string>

    <!-- If true, enable the "import contacts from SIM" feature if the device
         has an appropriate SIM or ICC card.
         Setting this flag to false in a resource overlay allows you to
         entirely disable SIM import on a per-product basis. -->
    <bool name="config_allow_sim_import">true</bool>
</resources>
+2 −1
Original line number Diff line number Diff line
@@ -87,7 +87,8 @@ public class ImportExportDialogFragment extends DialogFragment
            }
        };

        if (TelephonyManager.getDefault().hasIccCard()) {
        if (TelephonyManager.getDefault().hasIccCard()
                && res.getBoolean(R.bool.config_allow_sim_import)) {
            adapter.add(R.string.import_from_sim);
        }
        if (res.getBoolean(R.bool.config_allow_import_from_sdcard)) {