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

Commit f50730e3 authored by Yasmin's avatar Yasmin Committed by Yasmin Molazadeh
Browse files

Update the contract docummentation regarding UnsupportedOperationException.

Test: atest ManagedProfileTest#testCrossProfileCalendar
      atest CalendarProvider2Test
Bug: 130284827
Change-Id: I9e98efae6bc7229b995506a542940663c3fbae8f
parent 3415499a
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -187,6 +187,10 @@ public final class CalendarContract {
     * {@link android.database.ContentObserver} for this URL in the primary profile will be
     * notified when there is a change in the managed profile calendar provider.
     *
     * <p>Throw UnsupportedOperationException if another profile doesn't exist or is disabled, or
     * if the calling package is not whitelisted to access cross-profile calendar, or if the
     * feature has been disabled by the user in Settings.
     *
     * @see Events#ENTERPRISE_CONTENT_URI
     * @see Calendars#ENTERPRISE_CONTENT_URI
     * @see Instances#ENTERPRISE_CONTENT_URI