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

Commit 4fada2df authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix the "No service" text being too far away from the status icons" into main

parents c99c592f 6a559868
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -19,10 +19,12 @@ package com.android.systemui.shade.carrier;
import android.annotation.StyleRes;
import android.content.Context;
import android.util.AttributeSet;
import android.view.Gravity;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.android.systemui.Flags;
import com.android.systemui.res.R;

/**
@@ -33,6 +35,14 @@ public class ShadeCarrierGroup extends LinearLayout {
        super(context, attrs);
    }

    @Override
    protected void onFinishInflate() {
        super.onFinishInflate();
        if (Flags.fixShadeHeaderWrongIconSize()) {
            getNoSimTextView().setGravity(Gravity.CENTER_VERTICAL | Gravity.END);
        }
    }

    TextView getNoSimTextView() {
        return findViewById(R.id.no_carrier_text);
    }