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

Commit 5b018c5c authored by Zekan Qian's avatar Zekan Qian
Browse files

Use name as fallback of displayName

Bug: 244122804
Test: unit-test & build gallery
Change-Id: Ia683892900f78362fd66acc7189a57b0e51a4517
parent a51725bc
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -30,14 +30,14 @@ interface SettingsPageProvider {
    val name: String

    /** The display name of this page provider, for better readability. */
    val displayName: String?
        get() = null
    val displayName: String
        get() = name

    /** The page parameters, default is no parameters. */
    val parameter: List<NamedNavArgument>
        get() = emptyList()

    fun getTitle(arguments: Bundle?): String = displayName ?: name
    fun getTitle(arguments: Bundle?): String = displayName

    fun buildEntry(arguments: Bundle?): List<SettingsEntry> = emptyList()