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

Commit 0f363c40 authored by Fabián Kozynski's avatar Fabián Kozynski
Browse files

Shorten toString of TileSpec

These strings are used in logs. Shortening makes the logged strings
shorter and easier to parse

Test: dump QSTileListLog
Fixes: 326221627
Flag: None
Change-Id: Ida869f582451982e62d127603fb47030b9cbbfde
parent 26e89044
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -37,7 +37,11 @@ sealed class TileSpec private constructor(open val spec: String) {
    data class PlatformTileSpec
    internal constructor(
        override val spec: String,
    ) : TileSpec(spec)
    ) : TileSpec(spec) {
        override fun toString(): String {
            return "P($spec)"
        }
    }

    /**
     * Container for the spec of a tile provided by an app.
@@ -50,7 +54,7 @@ sealed class TileSpec private constructor(open val spec: String) {
        val componentName: ComponentName,
    ) : TileSpec(spec) {
        override fun toString(): String {
            return "CustomTileSpec(${componentName.toShortString()})"
            return "C(${componentName.flattenToShortString()})"
        }
    }