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

Commit e4f3565f authored by Jason Monk's avatar Jason Monk Committed by android-build-merger
Browse files

QS: Don't show graph or warning text when not present am: a03c641c am: 3a25aaae

am: 7ad42670

Change-Id: I76953de4569deeb7fb190a5678d74b47b5cf2f36
parents 40f7a32c 7ad42670
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -115,6 +115,12 @@ public class DataUsageDetailView extends LinearLayout {
        final TextView infoBottom = (TextView) findViewById(R.id.usage_info_bottom_text);
        infoBottom.setVisibility(bottom != null ? View.VISIBLE : View.GONE);
        infoBottom.setText(bottom);
        boolean showLevel = info.warningLevel > 0 || info.limitLevel > 0;
        graph.setVisibility(showLevel ? View.VISIBLE : View.GONE);
        if (!showLevel) {
            infoTop.setVisibility(View.GONE);
        }

    }

    private String formatBytes(long bytes) {