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

Commit 6041a4a2 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Prevents scheduling sysui frames on smaller devices with no sim"

parents fac7e459 3a6db67b
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -268,6 +268,18 @@ public class CarrierText extends TextView {
        }
    }

    @Override
    protected void onVisibilityChanged(View changedView, int visibility) {
        super.onVisibilityChanged(changedView, visibility);

        // Only show marquee when visible
        if (visibility == VISIBLE) {
            setEllipsize(TextUtils.TruncateAt.MARQUEE);
        } else {
            setEllipsize(TextUtils.TruncateAt.END);
        }
    }

    /**
     * Top-level function for creating carrier text. Makes text based on simState, PLMN
     * and SPN as well as device capabilities, such as being emergency call capable.