diff --git a/core/java/android/app/Notification.java b/core/java/android/app/Notification.java index 276f936605a61..55abdb6181233 100644 --- a/core/java/android/app/Notification.java +++ b/core/java/android/app/Notification.java @@ -3619,14 +3619,16 @@ public class Notification implements Parcelable * .build(); * *

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. * *

Example AndroidManifest.xml entry: *

          * <activity android:name="com.example.MyDisplayActivity"
          *     android:exported="true"
          *     android:allowEmbedded="true"
-         *     android:taskAffinity="" />
+ * android:taskAffinity="" + * android:theme="@android:style/Theme.DeviceDefault.Light" /> * * @param intent the {@link PendingIntent} for an activity * @return this object for method chaining