element-hq/element-android

Create booleans to configure preferences (settings screens) easily

開放

#5,366 建立於 2022年2月25日

 (1 則留言) (0 個反應) (0 位負責人)Kotlin (912 個分叉)auto 404
A-Settingshelp wanted

倉庫指標

星標
 (3,713 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

Create a set of booleans to configure preferences screens easily. It also has the advantage to centralize the default value for each setting. Before 2 boolean values had to be changed to change the default value of a preference (one in the XML and one in the file VectorPreferences.kt).

There is now a boolean to show or hide the setting in the preference screen, and a boolean for the default value of the preference.

It has been done for the root preference screen and the message bubbles: see here and the PR #5157 for more details.

Now we should do it for every single preference, which is, let's be honest, a boring and fastidious work.

If anyone in the community wants to give us a hand, it will be appreciated. It can of course be split into several small PRs (say one PR per preference screen). Every small PR will be appreciated!

貢獻者指南