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

Commit 47eb18a5 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Make DecoratedCustomViewStyle notifications consistent."

parents 1620baa5 56a64389
Loading
Loading
Loading
Loading
+1 −14
Original line number Diff line number Diff line
@@ -9050,22 +9050,9 @@ public class Notification implements Parcelable
            return remoteViews;
        }

        // This code is executed on behalf of other apps' notifications, sometimes even by 3p apps,
        // a use case that is not supported by the Compat Framework library.  Workarounds to resolve
        // the change's state in NotificationManagerService were very complex. While it's possible
        // apps can detect the change, it's most likely that the changes will simply result in
        // visual regressions.
        @SuppressWarnings("AndroidFrameworkCompatChange")
        private int getDecorationType() {
            ContentResolver contentResolver = mBuilder.mContext.getContentResolver();
            if (mBuilder.mContext.getApplicationInfo().targetSdkVersion >= Build.VERSION_CODES.S
                    || DevFlags.shouldBackportSNotifRules(contentResolver)) {
            return DevFlags.getDecoratedCustomViewNotifDecoration(contentResolver);
            } else {
                // For apps that don't target S, this decoration provides the closest behavior to R,
                // but doesn't fit with the design guidelines for S.
                return DevFlags.DECORATION_FULL_COMPATIBLE;
            }
        }

        /**