Loading core/java/android/app/Notification.java +15 −0 Original line number Diff line number Diff line Loading @@ -1689,6 +1689,8 @@ public class Notification implements Parcelable */ public static class BigPictureStyle extends Style { private Bitmap mPicture; private Bitmap mBigLargeIcon; private boolean mBigLargeIconSet = false; public BigPictureStyle() { } Loading Loading @@ -1719,6 +1721,16 @@ public class Notification implements Parcelable return this; } /** * @hide * Override the large icon when the big notification is shown. */ public BigPictureStyle bigLargeIcon(Bitmap b) { mBigLargeIconSet = true; mBigLargeIcon = b; return this; } private RemoteViews makeBigContentView() { RemoteViews contentView = getStandardView(R.layout.notification_template_big_picture); Loading @@ -1731,6 +1743,9 @@ public class Notification implements Parcelable public Notification build() { checkBuilder(); Notification wip = mBuilder.buildUnstyled(); if (mBigLargeIconSet ) { mBuilder.mLargeIcon = mBigLargeIcon; } wip.bigContentView = makeBigContentView(); return wip; } Loading core/res/res/layout/notification_template_big_picture.xml +18 −1 Original line number Diff line number Diff line Loading @@ -42,4 +42,21 @@ android:layout_width="match_parent" android:layout_height="wrap_content" /> <FrameLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="208dp" android:layout_marginLeft="64dp" android:layout_gravity="bottom" android:background="#CC111111" > <include layout="@layout/notification_action_list" android:id="@+id/actions" android:layout_marginLeft="8dp" android:layout_gravity="bottom" android:layout_width="match_parent" android:layout_height="wrap_content" /> </FrameLayout> </FrameLayout> core/res/res/values/public.xml +1 −0 Original line number Diff line number Diff line Loading @@ -785,6 +785,7 @@ <java-symbol type="string" name="serviceNotProvisioned" /> <java-symbol type="string" name="serviceRegistered" /> <java-symbol type="string" name="setup_autofill" /> <java-symbol type="string" name="share" /> <java-symbol type="string" name="shareactionprovider_share_with" /> <java-symbol type="string" name="shareactionprovider_share_with_application" /> <java-symbol type="string" name="short_format_month" /> Loading packages/SystemUI/res/drawable-hdpi/ic_menu_share.png 0 → 100644 +1.34 KiB Loading image diff... packages/SystemUI/res/drawable-mdpi/ic_menu_share.png 0 → 100644 +1.01 KiB Loading image diff... Loading
core/java/android/app/Notification.java +15 −0 Original line number Diff line number Diff line Loading @@ -1689,6 +1689,8 @@ public class Notification implements Parcelable */ public static class BigPictureStyle extends Style { private Bitmap mPicture; private Bitmap mBigLargeIcon; private boolean mBigLargeIconSet = false; public BigPictureStyle() { } Loading Loading @@ -1719,6 +1721,16 @@ public class Notification implements Parcelable return this; } /** * @hide * Override the large icon when the big notification is shown. */ public BigPictureStyle bigLargeIcon(Bitmap b) { mBigLargeIconSet = true; mBigLargeIcon = b; return this; } private RemoteViews makeBigContentView() { RemoteViews contentView = getStandardView(R.layout.notification_template_big_picture); Loading @@ -1731,6 +1743,9 @@ public class Notification implements Parcelable public Notification build() { checkBuilder(); Notification wip = mBuilder.buildUnstyled(); if (mBigLargeIconSet ) { mBuilder.mLargeIcon = mBigLargeIcon; } wip.bigContentView = makeBigContentView(); return wip; } Loading
core/res/res/layout/notification_template_big_picture.xml +18 −1 Original line number Diff line number Diff line Loading @@ -42,4 +42,21 @@ android:layout_width="match_parent" android:layout_height="wrap_content" /> <FrameLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="208dp" android:layout_marginLeft="64dp" android:layout_gravity="bottom" android:background="#CC111111" > <include layout="@layout/notification_action_list" android:id="@+id/actions" android:layout_marginLeft="8dp" android:layout_gravity="bottom" android:layout_width="match_parent" android:layout_height="wrap_content" /> </FrameLayout> </FrameLayout>
core/res/res/values/public.xml +1 −0 Original line number Diff line number Diff line Loading @@ -785,6 +785,7 @@ <java-symbol type="string" name="serviceNotProvisioned" /> <java-symbol type="string" name="serviceRegistered" /> <java-symbol type="string" name="setup_autofill" /> <java-symbol type="string" name="share" /> <java-symbol type="string" name="shareactionprovider_share_with" /> <java-symbol type="string" name="shareactionprovider_share_with_application" /> <java-symbol type="string" name="short_format_month" /> Loading