From 9bc61e26c85e09f6026c8ce1f4599d19aece6018 Mon Sep 17 00:00:00 2001 From: Wolfram Liebchen Date: Tue, 12 Sep 2023 19:58:52 +0200 Subject: [PATCH] Network traffic with automatic units [2/2] A new network traffic display unit option "automatic" offers a compact display of the network traffic by using at maximum three digits and an abbreviated unit string. Comes in handy for situations with reduced space in the status bar. Change-Id: Ib4d969924ad5a345b03540070e49a0473f343ad3 --- lineage/res/res/values/strings.xml | 2 + lineage/res/res/values/symbols.xml | 2 + .../lineageos/providers/LineageSettings.java | 15 ++++-- .../internal/statusbar/NetworkTraffic.java | 51 ++++++++++++++----- 4 files changed, 53 insertions(+), 17 deletions(-) diff --git a/lineage/res/res/values/strings.xml b/lineage/res/res/values/strings.xml index 156dfb3a..fbb62349 100644 --- a/lineage/res/res/values/strings.xml +++ b/lineage/res/res/values/strings.xml @@ -109,6 +109,8 @@ Mb/s kB/s MB/s + k + M