fixup! base: Introduce statusbar network traffic indicator
Change-Id: I9574fed018391d5ff08eda99cf5f248b64fe5cbb
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarIconHolder.kt b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarIconHolder.kt
index bef0b28..d484c7c 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarIconHolder.kt
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarIconHolder.kt
@@ -48,7 +48,8 @@
// this is effectively an unused return value.
TYPE_BINDABLE,
TYPE_MOBILE_NEW,
- TYPE_WIFI_NEW -> true
+ TYPE_WIFI_NEW,
+ TYPE_NETWORK_TRAFFIC -> true
else -> true
}
set(visible) {
@@ -100,6 +101,8 @@
/** Only applicable to [BindableIconHolder] */
const val TYPE_BINDABLE = 5
+ const val TYPE_NETWORK_TRAFFIC = 6
+
/** Returns a human-readable string representing the given type. */
fun getTypeString(@IconType type: Int): String {
return when (type) {
@@ -159,6 +162,13 @@
holder.tag = state.subId
return holder
}
+
+ @JvmStatic
+ fun fromNetworkTraffic(): StatusBarIconHolder {
+ val holder = StatusBarIconHolder()
+ holder.type = TYPE_NETWORK_TRAFFIC
+ return holder
+ }
}
/**