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

Commit b42b0c54 authored by Evan Laird's avatar Evan Laird Committed by android-build-merger
Browse files

Merge "Override getDrawingRect for wifi and mobile views" into pi-dev am: f6837ffb

am: 221ff945

Change-Id: I288f6e66b2174be108946d71e10aac47a9570403
parents e5f978ea 221ff945
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -88,6 +88,17 @@ public class StatusBarMobileView extends FrameLayout implements DarkReceiver,
        super(context, attrs, defStyleAttr, defStyleRes);
    }

    @Override
    public void getDrawingRect(Rect outRect) {
        super.getDrawingRect(outRect);
        float translationX = getTranslationX();
        float translationY = getTranslationY();
        outRect.left += translationX;
        outRect.right += translationX;
        outRect.top += translationY;
        outRect.bottom += translationY;
    }

    private void init() {
        mMobileGroup = findViewById(R.id.mobile_group);
        mMobile = findViewById(R.id.mobile_signal);
+11 −0
Original line number Diff line number Diff line
@@ -151,6 +151,17 @@ public class StatusBarWifiView extends FrameLayout implements DarkReceiver,
        return mVisibleState;
    }

    @Override
    public void getDrawingRect(Rect outRect) {
        super.getDrawingRect(outRect);
        float translationX = getTranslationX();
        float translationY = getTranslationY();
        outRect.left += translationX;
        outRect.right += translationX;
        outRect.top += translationY;
        outRect.bottom += translationY;
    }

    private void init() {
        int dualToneLightTheme = Utils.getThemeAttr(mContext, R.attr.lightIconTheme);
        int dualToneDarkTheme = Utils.getThemeAttr(mContext, R.attr.darkIconTheme);