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

Commit fdc738f9 authored by Selim Cinek's avatar Selim Cinek
Browse files

Media notifications may not have an icon

Change-Id: Ie47bf144f4add49ec5ed92bb19db39ad116f0678
parent 0d07c7ec
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
@@ -4384,7 +4384,17 @@ public class Notification implements Parcelable
                    view.addView(com.android.internal.R.id.media_actions, button);
                }
            }
            handleImage(view  /* addPaddingToMainColumn */);
            handleImage(view);
            // handle the content margin
            int endMargin;
            if (mBuilder.mN.mLargeIcon != null) {
                endMargin = mBuilder.mContext.getResources().getDimensionPixelSize(
                        R.dimen.notification_content_picture_margin_media);
            } else {
                endMargin = mBuilder.mContext.getResources().getDimensionPixelSize(
                        R.dimen.notification_content_margin_end);
            }
            view.setViewLayoutMarginEnd(R.id.notification_main_column, endMargin);
            return view;
        }

+0 −1
Original line number Diff line number Diff line
@@ -33,7 +33,6 @@
        android:orientation="horizontal"
        android:layout_marginStart="@dimen/notification_content_margin_start"
        android:layout_marginTop="@dimen/notification_content_margin_top"
        android:layout_marginEnd="72dp"
        android:tag="media"
        >
        <LinearLayout
+3 −0
Original line number Diff line number Diff line
@@ -146,6 +146,9 @@
    <!-- The margin on the end of the content view with a picture.-->
    <dimen name="notification_content_picture_margin">56dp</dimen>

    <!-- The margin on the end of the content view with a picture in the compact media.-->
    <dimen name="notification_content_picture_margin_media">72dp</dimen>

    <!-- height of the content margin to accomodate for the header -->
    <dimen name="notification_content_margin_top">30dp</dimen>

+1 −0
Original line number Diff line number Diff line
@@ -2506,6 +2506,7 @@
  <java-symbol type="dimen" name="media_notification_expanded_image_max_size" />
  <java-symbol type="dimen" name="media_notification_expanded_image_margin_bottom" />
  <java-symbol type="dimen" name="notification_content_image_margin_end" />
  <java-symbol type="dimen" name="notification_content_picture_margin_media" />

  <java-symbol type="bool" name="config_strongAuthRequiredOnBoot" />