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

Commit c59c6ca9 authored by Beverly Tai's avatar Beverly Tai Committed by android-build-merger
Browse files

Merge "Prevent NFE in SystemUI when parsing invalid int"

am: 9d7e1fe7

Change-Id: Ic015f0f87d7d8044701d9326afdd71893879f3b0
parents bf1c3119 9d7e1fe7
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -51,7 +51,9 @@ public class TunablePadding implements Tunable {
    public void onTuningChanged(String key, String newValue) {
        int dimen = mDefaultSize;
        if (newValue != null) {
            try {
                dimen = (int) (Integer.parseInt(newValue) * mDensity);
            } catch (NumberFormatException ex) {}
        }
        int left = mView.isLayoutRtl() ? FLAG_END : FLAG_START;
        int right = mView.isLayoutRtl() ? FLAG_START : FLAG_END;