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

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

Merge "Do not verify display context in DecorContext constructor"

parents 46af1434 f753ea6c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -46,9 +46,10 @@ public class DecorContext extends ContextThemeWrapper {

    private WeakReference<Context> mActivityContext;

    // TODO(b/149928768): Non-activity context can be passed.
    @VisibleForTesting
    public DecorContext(Context context, Context activityContext) {
        super(context.createDisplayContext(activityContext.getDisplay()), null);
        super(context.createDisplayContext(activityContext.getDisplayNoVerify()), null);
        mActivityContext = new WeakReference<>(activityContext);
        mActivityResources = activityContext.getResources();
    }