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

Commit fb499ff2 authored by Mohammed Althaf T's avatar Mohammed Althaf T 😊
Browse files

feat: align taskbar on orientation change

parent 3bb57027
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -27,6 +27,7 @@ import static com.android.launcher3.config.FeatureFlags.enableTaskbarPinning;
import static com.android.launcher3.icons.IconNormalizer.ICON_VISIBLE_AREA_FACTOR;

import android.content.Context;
import android.content.res.Configuration;
import android.content.res.Resources;
import android.graphics.Canvas;
import android.graphics.Rect;
@@ -148,6 +149,13 @@ public class TaskbarView extends FrameLayout implements FolderIcon.FolderIconPar
        this(context, attrs, defStyleAttr, 0);
    }

    @Override
    protected void onConfigurationChanged(Configuration newConfig) {
        super.onConfigurationChanged(newConfig);

        onDeviceProfileChanged(mActivityContext.getDeviceProfile());
    }

    public TaskbarView(@NonNull Context context, @Nullable AttributeSet attrs, int defStyleAttr,
            int defStyleRes) {
        super(context, attrs, defStyleAttr, defStyleRes);