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

Commit 0d0c1775 authored by Griff Hazen's avatar Griff Hazen
Browse files

[Doc fix] Document best practices for display intent activities.

Bug: 15412926

Change-Id: I1c3082dfde85cd03ffc97be6383a0608f925edcf
(cherry picked from commit 831ca9d3)
parent 281b14ee
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -3619,14 +3619,16 @@ public class Notification implements Parcelable
         *         .build();</pre>
         *
         * <p>The activity to launch needs to allow embedding, must be exported, and
         * should have an empty task affinity.
         * should have an empty task affinity. It is also recommended to use the device
         * default light theme.
         *
         * <p>Example AndroidManifest.xml entry:
         * <pre class="prettyprint">
         * &lt;activity android:name=&quot;com.example.MyDisplayActivity&quot;
         *     android:exported=&quot;true&quot;
         *     android:allowEmbedded=&quot;true&quot;
         *     android:taskAffinity=&quot;&quot; /&gt;</pre>
         *     android:taskAffinity=&quot;&quot;
         *     android:theme=&quot;@android:style/Theme.DeviceDefault.Light&quot; /&gt;</pre>
         *
         * @param intent the {@link PendingIntent} for an activity
         * @return this object for method chaining