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

Commit 65bfa19f authored by Nihar Thakkar's avatar Nihar Thakkar
Browse files

Show eelo and Google calendar accounts in their own custom account types

parent d6580552
Loading
Loading
Loading
Loading
Loading
+58 −6
Original line number Diff line number Diff line
@@ -215,9 +215,9 @@
                android:resource="@xml/contacts" />
        </service>

        <!-- account type "Google" -->
        <!-- account type "eelo" -->
        <service
            android:name=".syncadapter.GoogleAccountAuthenticatorService"
            android:name=".syncadapter.EeloAccountAuthenticatorService"
            android:exported="false">
            <intent-filter>
                <action android:name="android.accounts.AccountAuthenticator" />
@@ -225,12 +225,38 @@

            <meta-data
                android:name="android.accounts.AccountAuthenticator"
                android:resource="@xml/google_account_authenticator" />
                android:resource="@xml/eelo_account_authenticator" />
        </service>
        <service
            android:name=".syncadapter.EeloCalendarsSyncAdapterService"
            android:exported="true"
            android:process=":sync"
            tools:ignore="ExportedService">
            <intent-filter>
                <action android:name="android.content.SyncAdapter" />
            </intent-filter>

        <!-- account type "eelo" -->
            <meta-data
                android:name="android.content.SyncAdapter"
                android:resource="@xml/eelo_sync_calendars" />
        </service>
        <service
            android:name=".syncadapter.EeloAccountAuthenticatorService"
            android:name=".syncadapter.EeloTasksSyncAdapterService"
            android:exported="true"
            android:process=":sync"
            tools:ignore="ExportedService">
            <intent-filter>
                <action android:name="android.content.SyncAdapter" />
            </intent-filter>

            <meta-data
                android:name="android.content.SyncAdapter"
                android:resource="@xml/eelo_sync_tasks" />
        </service>

        <!-- account type "Google" -->
        <service
            android:name=".syncadapter.GoogleAccountAuthenticatorService"
            android:exported="false">
            <intent-filter>
                <action android:name="android.accounts.AccountAuthenticator" />
@@ -238,7 +264,33 @@

            <meta-data
                android:name="android.accounts.AccountAuthenticator"
                android:resource="@xml/eelo_account_authenticator" />
                android:resource="@xml/google_account_authenticator" />
        </service>
        <service
            android:name=".syncadapter.GoogleCalendarsSyncAdapterService"
            android:exported="true"
            android:process=":sync"
            tools:ignore="ExportedService">
            <intent-filter>
                <action android:name="android.content.SyncAdapter" />
            </intent-filter>

            <meta-data
                android:name="android.content.SyncAdapter"
                android:resource="@xml/google_sync_calendars" />
        </service>
        <service
            android:name=".syncadapter.GoogleTasksSyncAdapterService"
            android:exported="true"
            android:process=":sync"
            tools:ignore="ExportedService">
            <intent-filter>
                <action android:name="android.content.SyncAdapter" />
            </intent-filter>

            <meta-data
                android:name="android.content.SyncAdapter"
                android:resource="@xml/google_sync_tasks" />
        </service>

        <!-- Callback from authentication screen -->