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

Commit 6d5660fc authored by Gabriele M's avatar Gabriele M Committed by Danny Baumann
Browse files

Revert "Settings:Change the way of email account displayed"

We shouldn't use a whitelist here, we want to show the accounts
of every app.

This reverts commit 36b6c501.

Change-Id: I376b68b51eb78d9ba9c0cfb1759f5b84bf414e81
parent 9a48eafe
Loading
Loading
Loading
Loading
+45 −6
Original line number Diff line number Diff line
@@ -1051,12 +1051,51 @@
        <item>45507</item>
    </string-array>

    <!-- Defined the show accounts' type -->
    <string-array name="show_account_list">
        <item>com.android.exchange</item>
        <item>com.google</item>
        <item>com.android.email.legacy.imap</item>
        <item>com.android.email.pop3</item>
    <!-- Defined the hide accounts' type -->
    <string-array name="hide_account_list">
        <item>com.qualcomm.qti.RIDL</item>
        <item>com.android.localphone</item>
        <item>com.android.sim</item>
        <item>com.android.wanadoo</item>
        <item>com.android.orangemail</item>
        <item>com.android.correoorange</item>
        <item>com.android.orangemobile</item>
        <item>com.android.multibox</item>
        <item>com.android.belgacom</item>
        <item>com.android.skynet</item>
        <item>com.android.telenet</item>
        <item>com.android.scarlet</item>
        <item>com.android.euphony</item>
        <item>com.android.voo</item>
        <item>com.android.tele2</item>
        <item>com.android.versatel</item>
        <item>com.android.tiscali</item>
        <item>com.android.swing</item>
        <item>com.android.versatelasdl</item>
        <item>com.android.brutele</item>
        <item>com.android.teledisnet</item>
        <item>com.android.tvcablenet</item>
        <item>com.android.mobistar</item>
        <item>com.android.vodafone</item>
        <item>com.android.hotmail</item>
        <item>com.android.sapo</item>
        <item>com.android.netcabo</item>
        <item>com.android.clix</item>
        <item>com.android.alice</item>
        <item>com.android.yahoo</item>
        <item>com.android.outlook</item>
        <item>com.android.gmail</item>
        <item>com.android.aol</item>
        <item>com.android.free</item>
        <item>com.android.laposte</item>
        <item>com.android.sfr</item>
        <item>com.android.orange</item>
        <item>com.android.noos</item>
        <item>com.android.vodafone</item>
        <item>com.android.hotmail</item>
        <item>com.android.sapo</item>
        <item>com.android.netcabo</item>
        <item>com.android.clix</item>
    </string-array>

    <string-array name="plmn_list_for_apn_disable">
+5 −5
Original line number Diff line number Diff line
@@ -801,13 +801,13 @@ public final class Utils extends com.android.settingslib.Utils {
     * Returns if need show the account with the given account type.
     */
    public static boolean showAccount(Context context, String accountType) {
        String[] showAccounts = context.getResources().getStringArray(R.array.show_account_list);
        if (showAccounts == null || showAccounts.length == 0) return false;
        String[] hideAccounts = context.getResources().getStringArray(R.array.hide_account_list);
        if (hideAccounts == null || hideAccounts.length == 0) return true;

        for (String account : showAccounts) {
            if (account.equals(accountType)) return true;
        for (String account : hideAccounts) {
            if (account.equals(accountType)) return false;
        }
        return false;
        return true;
    }

    /**