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

Commit 128703b7 authored by Eran Messeri's avatar Eran Messeri
Browse files

Documentation: Indicate DPM method does I/O

Document that the addPersistentPreferredActivity method does Disk I/O
and so should not be called on the main thread.

Bug: 142648455
Test: m docs
Change-Id: Iadf2ab82f4f573e53ff68cad0b981494acf6f9b6
parent e76e96bd
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -6521,6 +6521,8 @@ public class DevicePolicyManager {
     * The calling device admin must be a profile owner or device owner. If it is not, a security
     * The calling device admin must be a profile owner or device owner. If it is not, a security
     * exception will be thrown.
     * exception will be thrown.
     *
     *
     * <p>NOTE: Performs disk I/O and shouldn't be called on the main thread.
     *
     * @param admin Which {@link DeviceAdminReceiver} this request is associated with.
     * @param admin Which {@link DeviceAdminReceiver} this request is associated with.
     * @param filter The IntentFilter for which a default handler is added.
     * @param filter The IntentFilter for which a default handler is added.
     * @param activity The Activity that is added as default intent handler.
     * @param activity The Activity that is added as default intent handler.