Loading core/java/android/app/Notification.java +6 −6 Original line number Diff line number Diff line Loading @@ -6002,7 +6002,7 @@ public class Notification implements Parcelable // HUNS, which use a different layout that already accounts for that). Templates that // have content that will be displayed under the small icon also use a different margin. if (Flags.notificationsRedesignTemplates() && !p.mHeaderless && !p.mHasContentInLeftMargin) { && !p.mHeaderless && !p.mSkipTopLineAlignment) { int margin = getContentMarginTop(mContext, R.dimen.notification_2025_content_margin_top); contentView.setViewLayoutMargin(R.id.notification_main_column, Loading Loading @@ -9503,7 +9503,7 @@ public class Notification implements Parcelable .hideLeftIcon(isOneToOne) .hideRightIcon(hideRightIcons || isOneToOne) .headerTextSecondary(isHeaderless ? null : conversationTitle) .hasContentInLeftMargin(true); .skipTopLineAlignment(true); RemoteViews contentView = mBuilder.applyStandardTemplateWithActions( isConversationLayout ? mBuilder.getConversationLayoutResource() Loading Loading @@ -14681,7 +14681,7 @@ public class Notification implements Parcelable Icon mPromotedPicture; boolean mCallStyleActions; boolean mAllowTextWithProgress; boolean mHasContentInLeftMargin; boolean mSkipTopLineAlignment; int mTitleViewId; int mTextViewId; @Nullable CharSequence mTitle; Loading @@ -14707,7 +14707,7 @@ public class Notification implements Parcelable mPromotedPicture = null; mCallStyleActions = false; mAllowTextWithProgress = false; mHasContentInLeftMargin = false; mSkipTopLineAlignment = false; mTitleViewId = R.id.title; mTextViewId = R.id.text; mTitle = null; Loading Loading @@ -14774,8 +14774,8 @@ public class Notification implements Parcelable return this; } public StandardTemplateParams hasContentInLeftMargin(boolean hasContentInLeftMargin) { mHasContentInLeftMargin = hasContentInLeftMargin; public StandardTemplateParams skipTopLineAlignment(boolean skipTopLineAlignment) { mSkipTopLineAlignment = skipTopLineAlignment; return this; } Loading
core/java/android/app/Notification.java +6 −6 Original line number Diff line number Diff line Loading @@ -6002,7 +6002,7 @@ public class Notification implements Parcelable // HUNS, which use a different layout that already accounts for that). Templates that // have content that will be displayed under the small icon also use a different margin. if (Flags.notificationsRedesignTemplates() && !p.mHeaderless && !p.mHasContentInLeftMargin) { && !p.mHeaderless && !p.mSkipTopLineAlignment) { int margin = getContentMarginTop(mContext, R.dimen.notification_2025_content_margin_top); contentView.setViewLayoutMargin(R.id.notification_main_column, Loading Loading @@ -9503,7 +9503,7 @@ public class Notification implements Parcelable .hideLeftIcon(isOneToOne) .hideRightIcon(hideRightIcons || isOneToOne) .headerTextSecondary(isHeaderless ? null : conversationTitle) .hasContentInLeftMargin(true); .skipTopLineAlignment(true); RemoteViews contentView = mBuilder.applyStandardTemplateWithActions( isConversationLayout ? mBuilder.getConversationLayoutResource() Loading Loading @@ -14681,7 +14681,7 @@ public class Notification implements Parcelable Icon mPromotedPicture; boolean mCallStyleActions; boolean mAllowTextWithProgress; boolean mHasContentInLeftMargin; boolean mSkipTopLineAlignment; int mTitleViewId; int mTextViewId; @Nullable CharSequence mTitle; Loading @@ -14707,7 +14707,7 @@ public class Notification implements Parcelable mPromotedPicture = null; mCallStyleActions = false; mAllowTextWithProgress = false; mHasContentInLeftMargin = false; mSkipTopLineAlignment = false; mTitleViewId = R.id.title; mTextViewId = R.id.text; mTitle = null; Loading Loading @@ -14774,8 +14774,8 @@ public class Notification implements Parcelable return this; } public StandardTemplateParams hasContentInLeftMargin(boolean hasContentInLeftMargin) { mHasContentInLeftMargin = hasContentInLeftMargin; public StandardTemplateParams skipTopLineAlignment(boolean skipTopLineAlignment) { mSkipTopLineAlignment = skipTopLineAlignment; return this; }