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

Commit beb39987 authored by Fabian Kozynski's avatar Fabian Kozynski Committed by Android (Google) Code Review
Browse files

Merge "Shorten toString of TileSpec" into main

parents 783ed50c 0f363c40
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()})"
        }
    }