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

Commit 47128d85 authored by Robert Snoeberger's avatar Robert Snoeberger
Browse files

Never split multiple constructors.

Test: mp sysuig
Change-Id: Ia410a5959c8e38ec42e0a475d4da479de4c6b7c2
parent 052a8395
Loading
Loading
Loading
Loading
+10 −10
Original line number Diff line number Diff line
@@ -185,6 +185,16 @@ public class StatusBarIconView extends AnimatedImageView implements StatusIconDi
        maybeUpdateIconScaleDimens();
    }

    public StatusBarIconView(Context context, AttributeSet attrs) {
        super(context, attrs);
        mDozer = new NotificationIconDozeHelper(context);
        mBlocked = false;
        mAlwaysScaleIcon = true;
        reloadDimens();
        maybeUpdateIconScaleDimens();
        mDensity = context.getResources().getDisplayMetrics().densityDpi;
    }

    /** Should always be preceded by {@link #reloadDimens()} */
    private void maybeUpdateIconScaleDimens() {
        // We do not resize and scale system icons (on the right), only notification icons (on the
@@ -277,16 +287,6 @@ public class StatusBarIconView extends AnimatedImageView implements StatusIconDi
        maybeUpdateIconScaleDimens();
    }

    public StatusBarIconView(Context context, AttributeSet attrs) {
        super(context, attrs);
        mDozer = new NotificationIconDozeHelper(context);
        mBlocked = false;
        mAlwaysScaleIcon = true;
        reloadDimens();
        maybeUpdateIconScaleDimens();
        mDensity = context.getResources().getDisplayMetrics().densityDpi;
    }

    private static boolean streq(String a, String b) {
        if (a == b) {
            return true;