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

Commit 26200eb3 authored by Roman Birg's avatar Roman Birg Committed by Adnan Begovic
Browse files

SystemUI: fix incorrectly sized nav bar icons



This partially apply commit 1bd137dc

Change-Id: I90c533a10830c641e657f48ee6f8407d4c67c830
Signed-off-by: default avatarRoman Birg <roman@cyngn.com>
parent 2389dfec
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@ package com.android.systemui.statusbar.phone;

import android.animation.Animator;
import android.animation.ObjectAnimator;
import android.annotation.NonNull;
import android.app.ActivityManager;
import android.graphics.Canvas;
import android.graphics.ColorFilter;
@@ -71,6 +72,11 @@ public class BackButtonDrawable extends Drawable {
        mWrappedDrawable.setBounds(left, top, right, bottom);
    }

    @Override
    protected void onBoundsChange(Rect bounds) {
        mWrappedDrawable.setBounds(bounds);
    }

    @Override
    public void setAlpha(int alpha) {
        mWrappedDrawable.setAlpha(alpha);
@@ -93,6 +99,16 @@ public class BackButtonDrawable extends Drawable {
        return mWrappedDrawable.getOpacity();
    }

    @Override
    public int getIntrinsicWidth() {
        return mWrappedDrawable.getIntrinsicWidth();
    }

    @Override
    public int getIntrinsicHeight() {
        return mWrappedDrawable.getIntrinsicHeight();
    }

    public void setRotation(float rotation) {
        mRotation = rotation;
        invalidateSelf();